projects
/
fwknop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b1b830f
)
bugfix to return preprocess_spa_data() result properly to calling function
author
Michael Rash
<mbr@cipherdyne.org>
Sat, 29 Oct 2011 20:55:28 +0000 (16:55 -0400)
committer
Michael Rash
<mbr@cipherdyne.org>
Sat, 29 Oct 2011 20:55:28 +0000 (16:55 -0400)
server/incoming_spa.c
patch
|
blob
|
history
diff --git
a/server/incoming_spa.c
b/server/incoming_spa.c
index
915a671
..
92ba03e
100644
(file)
--- a/
server/incoming_spa.c
+++ b/
server/incoming_spa.c
@@
-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");