diff options
author | Ted Lemon <source@isc.org> | 2002-01-17 19:42:55 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 2002-01-17 19:42:55 +0000 |
commit | ad0a11667c15ad82c2addbde7945fa5d035e5a7e (patch) | |
tree | 02922d5bf51a284628e7ed3a94c285d7217379a6 | |
parent | 66c6c79c5720051855562dd8f5463fdc42075beb (diff) | |
download | isc-dhcp-ad0a11667c15ad82c2addbde7945fa5d035e5a7e.tar.gz |
Don't print errors in fallback_discard().
-rw-r--r-- | common/socket.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/socket.c b/common/socket.c index 16f048eb..b4ecd142 100644 --- a/common/socket.c +++ b/common/socket.c @@ -51,7 +51,7 @@ #ifndef lint static char copyright[] = -"$Id: socket.c,v 1.55 2000/09/30 01:24:55 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; +"$Id: socket.c,v 1.55.2.1 2002/01/17 19:42:55 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -312,10 +312,13 @@ isc_result_t fallback_discard (object) status = recvfrom (interface -> wfdesc, buf, sizeof buf, 0, (struct sockaddr *)&from, &flen); +#if defined (DEBUG) + /* Only report fallback discard errors if we're debugging. */ if (status < 0) { log_error ("fallback_discard: %m"); return ISC_R_UNEXPECTED; } +#endif return ISC_R_SUCCESS; } #endif /* USE_SOCKET_FALLBACK */ |