From Timo Teras: reset iph1->dpd_r_u in the scheduler's callback, to avoid access to freed memory.

This commit is contained in:
vanhu 2008-01-11 14:27:34 +00:00
parent ca6b517233
commit 4aacbd15e1
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: isakmp_inf.c,v 1.23 2008/01/11 14:08:29 vanhu Exp $ */
/* $NetBSD: isakmp_inf.c,v 1.24 2008/01/11 14:27:34 vanhu Exp $ */
/* Id: isakmp_inf.c,v 1.44 2006/05/06 20:45:52 manubsd Exp */
@ -1613,6 +1613,8 @@ isakmp_info_send_r_u(arg)
plog(LLV_DEBUG, LOCATION, iph1->remote, "DPD monitoring....\n");
iph1->dpd_r_u=NULL;
if (iph1->dpd_fails >= iph1->rmconf->dpd_maxfails) {
plog(LLV_INFO, LOCATION, iph1->remote,