From 5999c7b9517e52918046cbd846a35de451de6383 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sun, 24 Jun 2007 14:28:38 +0000 Subject: yet another signature bugfix --- diff --git a/lib/server.cc b/lib/server.cc index 8db97be..b1c5c3a 100644 --- a/lib/server.cc +++ b/lib/server.cc @@ -36,7 +36,7 @@ namespace opkele { throw exception_openssl(OPKELE_CP_ "failed to DH_generate_key()"); vector ck(DH_size(dh)+1); unsigned char *ckptr = &(ck.front())+1; - int cklen = DH_compute_key(&(ck.front()),c_pub,dh); + int cklen = DH_compute_key(ckptr,c_pub,dh); if(cklen<0) throw exception_openssl(OPKELE_CP_ "failed to DH_compute_key()"); if(cklen && (*ckptr)&0x80) { -- cgit v0.9.0.2