summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2010-02-16 18:04:40 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2010-02-16 18:04:40 +0000
commitf5f4e7d769a5fdc3352d3236d6d2864c009fe37f (patch)
tree0b4a19a498bab0a911c8bd828514cc7b28b02af8
parenta48e2ddf9e8af34a1836680614821c63d5570ed5 (diff)
Don't log the same thing twice. From a much bigger diff.
OK dlg@, sthen@
-rw-r--r--usr.sbin/ospfd/packet.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/ospfd/packet.c b/usr.sbin/ospfd/packet.c
index b0011980614..5f48fc8b30d 100644
--- a/usr.sbin/ospfd/packet.c
+++ b/usr.sbin/ospfd/packet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: packet.c,v 1.28 2009/06/05 00:53:33 pyr Exp $ */
+/* $OpenBSD: packet.c,v 1.29 2010/02/16 18:04:39 claudio Exp $ */
/*
* Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
@@ -93,11 +93,8 @@ send_packet(struct iface *iface, struct buf *buf, struct sockaddr_in *dst)
/* set outgoing interface for multicast traffic */
if (IN_MULTICAST(ntohl(dst->sin_addr.s_addr)))
- if (if_set_mcast(iface) == -1) {
- log_warn("send_packet: error setting multicast "
- "interface, %s", iface->name);
+ if (if_set_mcast(iface) == -1)
return (-1);
- }
if (sendmsg(iface->fd, &msg, 0) == -1) {
log_warn("send_packet: error sending packet on interface %s",