memset to zero the entire nop_in structure. Fixes PR#39688 by Henning Petersen. Thanks!diff -r1.23 -r1.24 src/dist/iscsi/src/target.c
(oster)
--- src/dist/iscsi/src/Attic/target.c 2008/02/07 19:09:02 1.23
+++ src/dist/iscsi/src/Attic/target.c 2008/10/08 14:58:57 1.24
@@ -549,7 +549,7 @@
uint8_t rsp_header[ISCSI_HEADER_LEN];
iscsi_trace(TRACE_ISCSI_DEBUG, __FILE__, __LINE__, "sending %d bytes ping response\n", nop_out.length);
- (void) memset(&nop_in, 0x0, sizeof(&nop_in));
+ (void) memset(&nop_in, 0x0, sizeof(nop_in));
nop_in.length = nop_out.length;
nop_in.lun = nop_out.lun;
nop_in.tag = nop_out.tag;