diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-04-28 03:34:39 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-04-28 03:34:39 +0000 |
commit | c650ec55433e876493ee7b7442019915aafed0e0 (patch) | |
tree | aaafd6d75f11411ff9729d2b361af78fb2f1a1c4 /usr.sbin/bgpd/pfkey.c | |
parent | b6ba89594dc146529ba9f49449537f2ba9dfd3b1 (diff) |
make this at least compile
Diffstat (limited to 'usr.sbin/bgpd/pfkey.c')
-rw-r--r-- | usr.sbin/bgpd/pfkey.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/pfkey.c b/usr.sbin/bgpd/pfkey.c index ad64dbd893c..1163a4c5fab 100644 --- a/usr.sbin/bgpd/pfkey.c +++ b/usr.sbin/bgpd/pfkey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfkey.c,v 1.24 2004/04/28 03:19:52 markus Exp $ */ +/* $OpenBSD: pfkey.c,v 1.25 2004/04/28 03:34:38 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -424,8 +424,12 @@ pfkey_reply(int sd, u_int32_t *spip) } if (hdr.sadb_msg_errno != 0) { errno = hdr.sadb_msg_errno; - log_warn("pfkey"); - return (-1); + if (errno == ESRCH) + return (0); + else { + log_warn("pfkey"); + return (-1); + } } len = hdr.sadb_msg_len * PFKEY2_CHUNK; if ((data = malloc(len)) == NULL) { |