bgpd and ldpd.
Found by CodeChecker.
OK claudio@
-/* $OpenBSD: pfkey.c,v 1.67 2022/08/17 15:15:26 claudio Exp $ */
+/* $OpenBSD: pfkey.c,v 1.68 2022/11/07 22:39:13 mbuhl Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
if (recv(sd, &hdr, sizeof(hdr), MSG_PEEK) != sizeof(hdr)) {
if (errno == EAGAIN || errno == EINTR)
- return (0);
+ return (1);
log_warn("pfkey peek");
return (-1);
}
/* not ours, discard */
if (read(sd, &hdr, sizeof(hdr)) == -1) {
if (errno == EAGAIN || errno == EINTR)
- return (0);
+ return (1);
log_warn("pfkey read");
return (-1);
}
-/* $OpenBSD: pfkey.c,v 1.12 2019/01/23 02:02:04 dlg Exp $ */
+/* $OpenBSD: pfkey.c,v 1.13 2022/11/07 22:39:13 mbuhl Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
if (recv(sd, &hdr, sizeof(hdr), MSG_PEEK) != sizeof(hdr)) {
if (errno == EAGAIN || errno == EINTR)
- return (0);
+ return (1);
log_warn("pfkey peek");
return (-1);
}
/* not ours, discard */
if (read(sd, &hdr, sizeof(hdr)) == -1) {
if (errno == EAGAIN || errno == EINTR)
- return (0);
+ return (1);
log_warn("pfkey read");
return (-1);
}