-fix state machine rekey logic --- #2790
authorChristian Grothoff <christian@grothoff.org>
Mon, 11 Feb 2013 23:12:05 +0000 (23:12 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 11 Feb 2013 23:12:05 +0000 (23:12 +0000)
src/core/gnunet-service-core_kx.c

index f7fbfcf68ab79720a85b163d0a193ad44e09c785..b8b58bc83b774745d94cc6fac7d10d804e83c6ee 100644 (file)
@@ -844,12 +844,12 @@ GSC_KX_handle_ephemeral_key (struct GSC_KeyExchangeInfo *kx,
     send_ping (kx);
     break;
   case KX_STATE_UP: 
-    kx->status = KX_STATE_KEY_RECEIVED;
+    kx->status = KX_STATE_REKEY_SENT;
     /* we got a new key, need to reconfirm! */
     send_ping (kx);
     break;
   case KX_STATE_REKEY_SENT:
-    kx->status = KX_STATE_KEY_RECEIVED;
+    kx->status = KX_STATE_REKEY_SENT;
     /* we got a new key, need to reconfirm! */
     send_ping (kx);
     break;