From: Ted Lemon Date: Mon, 6 Mar 2000 22:52:16 +0000 (+0000) Subject: Return -1 when read_socket method is called on non-interface object. X-Git-Tag: V3-BETA-2-PATCH-1~299 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a7593816b327a2731e9368af605b8458499012a;p=thirdparty%2Fdhcp.git Return -1 when read_socket method is called on non-interface object. --- diff --git a/common/discover.c b/common/discover.c index 86195fdae..503693867 100644 --- a/common/discover.c +++ b/common/discover.c @@ -22,7 +22,7 @@ #ifndef lint static char copyright[] = -"$Id: discover.c,v 1.23 2000/02/15 20:40:30 mellon Exp $ Copyright (c) 1995, 1996, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; +"$Id: discover.c,v 1.24 2000/03/06 22:52:16 mellon Exp $ Copyright (c) 1995, 1996, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -586,7 +586,7 @@ int if_readsocket (h) struct interface_info *ip; if (h -> type != dhcp_type_interface) - return ISC_R_INVALIDARG; + return -1; ip = (struct interface_info *)h; return ip -> rfdesc; }