summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/dpd.c
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-12-10 17:27:01 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-12-10 17:27:01 +0000
commit4bf2522637132964c3a4ee8eb87b6eb96c38a3c0 (patch)
tree63cf1b992195e827c9ad374a9b4cc94720b62605 /sbin/isakmpd/dpd.c
parent9356f2f86075047e5545cb5c4e6914e0c96d84f4 (diff)
Remove NULL-checks before free(). ok tb@
Diffstat (limited to 'sbin/isakmpd/dpd.c')
-rw-r--r--sbin/isakmpd/dpd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/isakmpd/dpd.c b/sbin/isakmpd/dpd.c
index 6e81ba8cbf2..24c4098229c 100644
--- a/sbin/isakmpd/dpd.c
+++ b/sbin/isakmpd/dpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dpd.c,v 1.18 2014/01/23 01:04:28 deraadt Exp $ */
+/* $OpenBSD: dpd.c,v 1.19 2015/12/10 17:27:00 mmcc Exp $ */
/*
* Copyright (c) 2004 Håkan Olsson. All rights reserved.
@@ -334,8 +334,7 @@ dpd_event(void *v_sa)
addr = 0;
LOG_DBG((LOG_MESSAGE, 30, "dpd_event: sending R_U_THERE to %s seq %u",
addr ? addr : "<unknown>", isakmp_sa->dpd_seq));
- if (addr)
- free(addr);
+ free(addr);
message_send_dpd_notify(isakmp_sa, ISAKMP_NOTIFY_STATUS_DPD_R_U_THERE,
isakmp_sa->dpd_seq);