projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a07602c
)
- Work with the correct key buffer in ans_key_h
author
Guus Sliepen
<guus@tinc-vpn.org>
Wed, 22 Nov 2000 20:25:27 +0000
(20:25 +0000)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Wed, 22 Nov 2000 20:25:27 +0000
(20:25 +0000)
src/protocol.c
patch
|
blob
|
history
diff --git
a/src/protocol.c
b/src/protocol.c
index
1a791a7
..
735a14c
100644
(file)
--- a/
src/protocol.c
+++ b/
src/protocol.c
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: protocol.c,v 1.28.4.6
4 2000/11/22 19:55:50
guus Exp $
+ $Id: protocol.c,v 1.28.4.6
5 2000/11/22 20:25:27
guus Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-1258,8
+1258,8
@@
cp
from->cipher_pktkey = xstrdup(pktkey);
keylength /= 2;
from->cipher_pktkey = xstrdup(pktkey);
keylength /= 2;
- hex2bin(
pktkey,
pktkey, keylength);
- pktkey[keylength] = '\0';
+ hex2bin(
from->cipher_pktkey, from->cipher_
pktkey, keylength);
+
from->cipher_
pktkey[keylength] = '\0';
from->status.validkey = 1;
from->status.waitingforkey = 0;
from->status.validkey = 1;
from->status.waitingforkey = 0;