diff options
author | claudio <claudio@openbsd.org> | 2014-11-23 13:05:51 +0000 |
---|---|---|
committer | claudio <claudio@openbsd.org> | 2014-11-23 13:05:51 +0000 |
commit | 2337c7c99103dfedcfcc8e6c09e0ad1a7ba28c34 (patch) | |
tree | da0a8735524845fd7997d39fef9a42911012ae04 /usr.sbin/iscsid | |
parent | Revert the logic to skip ports which status hasn't changed, it introduces (diff) | |
download | wireguard-openbsd-2337c7c99103dfedcfcc8e6c09e0ad1a7ba28c34.tar.xz wireguard-openbsd-2337c7c99103dfedcfcc8e6c09e0ad1a7ba28c34.zip |
Clear the work in progress PDU before calling the task handler.
This ensures that we don't have multiple pointers pointing to the same PDU.
Diffstat (limited to 'usr.sbin/iscsid')
-rw-r--r-- | usr.sbin/iscsid/pdu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/iscsid/pdu.c b/usr.sbin/iscsid/pdu.c index a73c19e2ccb..e6dffce12ab 100644 --- a/usr.sbin/iscsid/pdu.c +++ b/usr.sbin/iscsid/pdu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pdu.c,v 1.9 2014/04/21 12:26:50 claudio Exp $ */ +/* $OpenBSD: pdu.c,v 1.10 2014/11/23 13:05:51 claudio Exp $ */ /* * Copyright (c) 2009 Claudio Jeker <claudio@openbsd.org> @@ -393,8 +393,8 @@ pdu_parse(struct connection *c) } } p->resid = 0; /* reset resid so pdu can be reused */ - task_pdu_cb(c, p); c->prbuf.wip = NULL; + task_pdu_cb(c, p); } } while (1); fail: |