diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1999-02-25 03:50:44 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1999-02-25 03:50:44 +0000 |
commit | ed7aaa595a0c730731a873836c8cacbbf72042a9 (patch) | |
tree | 499e5ff6f96311f5d992d9900a0b50ae2ed68f91 /sys/net/pfkeyv2.c | |
parent | ef2e3fd080d1c53595dcd049502a0a433f578b81 (diff) |
Possible cause of responses not going back to userland.
Diffstat (limited to 'sys/net/pfkeyv2.c')
-rw-r--r-- | sys/net/pfkeyv2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pfkeyv2.c b/sys/net/pfkeyv2.c index a6b055ea9f8..770021665b7 100644 --- a/sys/net/pfkeyv2.c +++ b/sys/net/pfkeyv2.c @@ -1344,13 +1344,13 @@ pfkeyv2_send(struct socket *socket, void *message, int len) } ret: - if (rval < 0) { + if (rval) { if ((rval == EINVAL) || (rval == ENOMEM) || (rval == ENOBUFS)) goto realret; for (i = 1; i <= SADB_EXT_MAX; i++) headers[i] = NULL; - ((struct sadb_msg *)headers[0])->sadb_msg_errno = -rval; + ((struct sadb_msg *)headers[0])->sadb_msg_errno = abs(rval); } else { uint32_t seen = 0; |