diff options
author | Kevin Steves <stevesk@cvs.openbsd.org> | 2007-02-09 16:49:48 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@cvs.openbsd.org> | 2007-02-09 16:49:48 +0000 |
commit | d8bc1d67f3da8eb65175402c6507f96b8c94fada (patch) | |
tree | 76f29c87f0355a5fe3c0c74c16469f4d1163c43a /usr.sbin/dhcrelay/dhcrelay.c | |
parent | f2f23e7127d30f5bea8502e9b3e5601ac85f304f (diff) |
return on ECONNREFUSED so we don't fall through to 'result <
BOOTP_MIN_LEN' and display discarding message.
ok henning@ claudio@
Diffstat (limited to 'usr.sbin/dhcrelay/dhcrelay.c')
-rw-r--r-- | usr.sbin/dhcrelay/dhcrelay.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/dhcrelay/dhcrelay.c b/usr.sbin/dhcrelay/dhcrelay.c index 0b7ca9acd0c..5bc0623b264 100644 --- a/usr.sbin/dhcrelay/dhcrelay.c +++ b/usr.sbin/dhcrelay/dhcrelay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhcrelay.c,v 1.28 2006/12/18 01:08:58 stevesk Exp $ */ +/* $OpenBSD: dhcrelay.c,v 1.29 2007/02/09 16:49:47 stevesk Exp $ */ /* * Copyright (c) 2004 Henning Brauer <henning@cvs.openbsd.org> @@ -321,6 +321,9 @@ got_response(struct protocol *l) inet_ntoa(sp->to.sin_addr)); return; } + if (result == -1 && errno == ECONNREFUSED) + return; + if (result == 0) return; |