OpenBSD/src Lvnu0EW — sbin/isakmpd exchange.c exchange.h
Check for failures of exchange_establish_p{1,2}() and call the given `finalize' function with the `fail' argument when this happen. Introduce some sanity checks in exchange_free() to be able to call if even if the data structure isn't completely initialized. Plug memory leaks when exchange_establish() fails. While here fix a double free in one of the error paths. Based on a diff from hshoexer@, ok stsp@, markus@
Version | Delta | File | |
---|---|---|---|
1.139 | +51 | -31 | sbin/isakmpd/exchange.c |
1.35 | +6 | -3 | sbin/isakmpd/exchange.h |
+57 | -34 | 2 files |