Module Name: othersrc
Committed By: riz
Date: Fri Jun 10 18:48:52 UTC 2011
Modified Files:
othersrc/external/bsd/iscsi/sbin/iscsid: iscsid_driverif.c
Log Message:
Don't try to dereference a void pointer without proper cast.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
othersrc/external/bsd/iscsi/sbin/iscsid/iscsid_driverif.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: othersrc/external/bsd/iscsi/sbin/iscsid/iscsid_driverif.c
diff -u othersrc/external/bsd/iscsi/sbin/iscsid/iscsid_driverif.c:1.1.1.1 othersrc/external/bsd/iscsi/sbin/iscsid/iscsid_driverif.c:1.2
--- othersrc/external/bsd/iscsi/sbin/iscsid/iscsid_driverif.c:1.1.1.1 Mon May 2 07:01:07 2011
+++ othersrc/external/bsd/iscsi/sbin/iscsid/iscsid_driverif.c Fri Jun 10 18:48:51 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: iscsid_driverif.c,v 1.1.1.1 2011/05/02 07:01:07 agc Exp $ */
+/* $NetBSD: iscsid_driverif.c,v 1.2 2011/06/10 18:48:51 riz Exp $ */
/*-
* Copyright (c) 2005,2006,2011 The NetBSD Foundation, Inc.
@@ -790,7 +790,7 @@
rc = ISCSID_STATUS_NO_RESOURCES;
else {
ret = ioctl(driver, ISCSI_SEND_TARGETS, &sendt);
- sendt.response_buffer[sendt.response_size] = 0;
+ ((uint8_t *)sendt.response_buffer)[sendt.response_size] = 0;
if (ret || sendt.status) {
free(sendt.response_buffer);