summaryrefslogtreecommitdiff
path: root/pimd/pim_pim.c
diff options
context:
space:
mode:
Diffstat (limited to 'pimd/pim_pim.c')
-rw-r--r--pimd/pim_pim.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pimd/pim_pim.c b/pimd/pim_pim.c
index e7ac0d4e5b..8c38cf6c4c 100644
--- a/pimd/pim_pim.c
+++ b/pimd/pim_pim.c
@@ -322,7 +322,6 @@ int pim_pim_packet(struct interface *ifp, uint8_t *buf, size_t len)
}
return -1;
}
- return -1;
}
static void pim_sock_read_on(struct interface *ifp);
@@ -514,7 +513,7 @@ static int pim_msg_send_frame(int fd, char *buf, size_t len,
{
struct ip *ip = (struct ip *)buf;
- while (sendto(fd, buf, len, MSG_DONTWAIT, dst, salen) < 0) {
+ if (sendto(fd, buf, len, MSG_DONTWAIT, dst, salen) < 0) {
char dst_str[INET_ADDRSTRLEN];
switch (errno) {