Re: [ipsec] KEY_FREESAV() in FreeBSD-Release7.0

2008-04-08 Thread Bjoern A. Zeeb
On Tue, 8 Apr 2008, blue wrote: Hi, Dear all: About the KEY_FREESAV() in key_checkrequest() in key.c: line 806: if (isr->sav != NULL) { KEY_FREESAV(&isr->sav); isr->sav = NULL; } The codes are only going to free the sav used LAST TIME. For outgoing SA entries, the reference co

[ipsec] KEY_FREESAV() in FreeBSD-Release7.0

2008-04-07 Thread blue
Dear all: About the KEY_FREESAV() in key_checkrequest() in key.c: line 806: if (isr->sav != NULL) { KEY_FREESAV(&isr->sav); isr->sav = NULL; } The codes are only going to free the sav used LAST TIME. For outgoing SA entries, the reference count will be always 2, instead of 1