Check for NULL public key from SKE.
authorPekka Riikonen <priikone@silcnet.org>
Sun, 11 Nov 2007 11:30:04 +0000 (11:30 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Sun, 11 Nov 2007 11:30:04 +0000 (11:30 +0000)
lib/silcske/silcconnauth.c

index 70cc29680181e9b314baf92e647a252c6902ff60..3e92d0ed86a50ca24b08748836f17651d1b3255e 100644 (file)
@@ -591,7 +591,7 @@ SILC_FSM_STATE(silc_connauth_st_responder_authenticate)
     /* Allocate search constraints for finding the key */
     find = silc_skr_find_alloc();
 
-    if (!find || !connauth->auth_data) {
+    if (!find || !connauth->auth_data || !connauth->ske->prop->public_key) {
       /** Out of memory */
       silc_fsm_next(fsm, silc_connauth_st_responder_failure);
       return SILC_FSM_CONTINUE;