]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Return -1 when read_socket method is called on non-interface object.
authorTed Lemon <source@isc.org>
Mon, 6 Mar 2000 22:52:16 +0000 (22:52 +0000)
committerTed Lemon <source@isc.org>
Mon, 6 Mar 2000 22:52:16 +0000 (22:52 +0000)
common/discover.c

index 86195fdaec00b06e6d8e3b6e984105779f374263..5036938674e542fb56462fcfebb46e0db0a46518 100644 (file)
@@ -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;
 }