summaryrefslogtreecommitdiff
path: root/server/failover.c
diff options
context:
space:
mode:
authorShawn Routhier <sar@isc.org>2010-12-13 20:31:08 +0000
committerShawn Routhier <sar@isc.org>2010-12-13 20:31:08 +0000
commit9d97e6445e193df48ed8704de858210a033088a5 (patch)
treedc81c8242a47115792b2e5962a4f2ec144f5e85f /server/failover.c
parent72c446672fbaad4083ca846e02bd284a2aecf3a1 (diff)
downloadisc-dhcp-9d97e6445e193df48ed8704de858210a033088a5.tar.gz
Fix the handling of connection requests on the failover port.
Previously a connection request from a source that wasn't listed as a failover peer would cause the server to become non-responsive. [ISC-Bugs #22679] CERT: VU#159528 CVE: CVE-2010-3616
Diffstat (limited to 'server/failover.c')
-rw-r--r--server/failover.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/failover.c b/server/failover.c
index 53957bb1..1dbcc1d1 100644
--- a/server/failover.c
+++ b/server/failover.c
@@ -3,7 +3,7 @@
Failover protocol support code... */
/*
- * Copyright (c) 2004-2009 by Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (c) 2004-2010 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 1999-2003 by Internet Software Consortium
*
* Permission to use, copy, modify, and distribute this software for any
@@ -1101,7 +1101,8 @@ isc_result_t dhcp_failover_listener_signal (omapi_object_t *o,
}
if (!state) {
log_info ("failover: listener: no matching state");
- return omapi_disconnect ((omapi_object_t *)c, 1);
+ omapi_disconnect ((omapi_object_t *)c, 1);
+ return(ISC_R_NOTFOUND);
}
obj = (dhcp_failover_link_t *)0;