From a8659147725d11f1706beb2fa0af33cea9bacfcf Mon Sep 17 00:00:00 2001 From: Joerg Mayer Date: Mon, 26 May 2014 20:09:51 +0000 Subject: [PATCH] Print a warning if an illegal value is used for the spi but continue git-svn-id: https://svn.unix-ag.uni-kl.de/vpnc/trunk@550 315857ad-0bdb-0310-b42e-dec37551a5f0 --- tunip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tunip.c b/tunip.c index 4f3b6ec..00d9e1c 100644 --- a/tunip.c +++ b/tunip.c @@ -730,6 +730,8 @@ static void process_socket(struct sa_block *s) } 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 */ -- 2.11.4.GIT