Mailing List Archive

svn commit: vpnc r550 - /trunk/tunip.c
Author: Joerg Mayer
Date: Mon May 26 22:09:51 2014
New Revision: 550

Log:
Print a warning if an illegal value is used for the spi but continue

Modified:
trunk/tunip.c

Modified: trunk/tunip.c
==============================================================================
--- trunk/tunip.c (original)
+++ trunk/tunip.c Mon May 26 22:09:51 2014
@@ -730,6 +730,8 @@
} else if (eh->spi != s->ipsec.rx.spi) {
logmsg(LOG_NOTICE, "unknown spi %#08x from peer", ntohl(eh->spi));
return;
+ } else if (ntohl(eh->spi) < 256) {
+ syslog(LOG_NOTICE, "illegal spi %d from peer - continuing", ntohl(eh->spi));
}

/* Check auth digest and/or decrypt */

_______________________________________________
vpnc-devel mailing list
vpnc-devel@unix-ag.uni-kl.de
https://lists.unix-ag.uni-kl.de/mailman/listinfo/vpnc-devel
http://www.unix-ag.uni-kl.de/~massar/vpnc/