summaryrefslogtreecommitdiffstats
path: root/usr.sbin/iscsid/task.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2011-01-04 09:53:17 +0000
committerclaudio <claudio@openbsd.org>2011-01-04 09:53:17 +0000
commit31d7b63e60e28bec7745781d4fec343605c652f8 (patch)
treefe8e3fb2cd6ef08cf6e69e73f7b1510fe226c9cc /usr.sbin/iscsid/task.c
parentAdd missing session parameter. (diff)
downloadwireguard-openbsd-31d7b63e60e28bec7745781d4fec343605c652f8.tar.xz
wireguard-openbsd-31d7b63e60e28bec7745781d4fec343605c652f8.zip
Log the PDU which failed because no task was found.
Should help identify the messages that are issued by the target (e.g. NOP).
Diffstat (limited to 'usr.sbin/iscsid/task.c')
-rw-r--r--usr.sbin/iscsid/task.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/iscsid/task.c b/usr.sbin/iscsid/task.c
index 263937dc7c7..87926931c98 100644
--- a/usr.sbin/iscsid/task.c
+++ b/usr.sbin/iscsid/task.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: task.c,v 1.3 2010/09/25 16:20:06 sobrado Exp $ */
+/* $OpenBSD: task.c,v 1.4 2011/01/04 09:53:17 claudio Exp $ */
/*
* Copyright (c) 2009 Claudio Jeker <claudio@openbsd.org>
@@ -113,12 +113,13 @@ task_pdu_cb(struct connection *c, struct pdu *p)
t->callback(c, t->callarg, p);
else {
log_debug("no task for PDU found");
+ log_pdu(p, 1);
pdu_free(p);
}
break;
default:
-log_pdu(p, 1);
log_warnx("not handled yet. fix me");
+ log_pdu(p, 1);
pdu_free(p);
}
}