NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/39688: Failure in memset dist/iscsi/src/target.c



>Number:         39688
>Category:       lib
>Synopsis:       Failure in memset dist/iscsi/src/target.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 03 17:30:00 +0000 2008
>Originator:     Henning Petersen
>Release:        
>Organization:
>Environment:
>Description:
diff -u -r1.23 target.c
--- dist/iscsi/src/target.c     7 Feb 2008 19:09:02 -0000       1.23
+++ dist/iscsi/src/target.c     3 Oct 2008 15:02:45 -0000
@@ -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;

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index