Revision 550

Date:
2014/05/26 20:09:51
Author:
Joerg Mayer
Revision Log:
Print a warning if an illegal value is used for the spi but continue
Files:

Legend:

 
Added
 
Removed
 
Modified
  • trunk/tunip.c

     
    730 730 } else if (eh->spi != s->ipsec.rx.spi) {
    731 731 logmsg(LOG_NOTICE, "unknown spi %#08x from peer", ntohl(eh->spi));
    732 732 return;
    733 } else if (ntohl(eh->spi) < 256) {
    734 syslog(LOG_NOTICE, "illegal spi %d from peer - continuing", ntohl(eh->spi));
    733 735 }
    734 736
    735 737 /* Check auth digest and/or decrypt */