bugfix to return preprocess_spa_data() result properly to calling function
authorMichael Rash <mbr@cipherdyne.org>
Sat, 29 Oct 2011 20:55:28 +0000 (16:55 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Sat, 29 Oct 2011 20:55:28 +0000 (16:55 -0400)
server/incoming_spa.c

index 915a671..92ba03e 100644 (file)
@@ -206,7 +206,7 @@ incoming_spa(fko_srv_options_t *opts)
     */
     res = preprocess_spa_data(opts, spadat.pkt_source_ip);
     if(res != FKO_SUCCESS)
-        return(SPA_MSG_NOT_SPA_DATA);
+        return(res);
 
     log_msg(LOG_INFO, "SPA Packet from IP: %s received.", spadat.pkt_source_ip);
 
@@ -231,7 +231,7 @@ incoming_spa(fko_srv_options_t *opts)
     {
         if(acc->key != NULL)
             res = fko_new_with_data(&ctx, (char *)spa_pkt->packet_data, acc->key);
-        else 
+        else
         {
             log_msg(LOG_ERR,
                 "No KEY for RIJNDAEL encrypted messages");