From eb1c9814e6b2a5206be1fadf19e0dc779690a69e Mon Sep 17 00:00:00 2001 From: Ivo Timmermans Date: Sun, 30 Apr 2000 16:31:23 +0000 Subject: [PATCH] Read public keys the right way (tm). --- src/protocol.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/protocol.c b/src/protocol.c index 7c267838..44f012f7 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -333,10 +333,12 @@ cp tmp->from = myself->vpn_ip; tmp->expiry = my_key_expiry; tmp->len = strlen(my_public_key_base36); - strcpy(&tmp->key, my_public_key_base36); + strcpy(&(tmp->key), my_public_key_base36); cp - fw = lookup_conn(to); + syslog(LOG_DEBUG, "key sent = %s", my_public_key_base36); +cp + fw = lookup_conn(to); cp if(!fw) @@ -346,9 +348,10 @@ cp return -1; } cp + syslog(LOG_DEBUG, "key sent = %s", &(tmp->key)); - syslog(LOG_DEBUG, "key sent = %s", tmp->key); - if(debug_lvl > 2) +cp + if(debug_lvl > 2) syslog(LOG_DEBUG, "Sending public key to " IP_ADDR_S, IP_ADDR_V(fw->nexthop->vpn_ip)); cp -- 2.39.5