http://git.etherboot.org
/
people
/
mcb30
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9b8197
)
Fix off-by-one error (discovered by Shao Miller).
author
Michael Brown
<mcb30@etherboot.org>
Mon, 7 Jan 2008 13:12:43 +0000
(13:12 +0000)
committer
Michael Brown
<mcb30@etherboot.org>
Mon, 7 Jan 2008 13:12:43 +0000
(13:12 +0000)
src/net/tcp/iscsi.c
patch
|
blob
|
history
diff --git
a/src/net/tcp/iscsi.c
b/src/net/tcp/iscsi.c
index
2416089
..
86f3c67
100644
(file)
--- a/
src/net/tcp/iscsi.c
+++ b/
src/net/tcp/iscsi.c
@@
-684,7
+684,7
@@
static int iscsi_handle_chap_c_value ( struct iscsi_session *iscsi,
/* Process challenge an octet at a time */
for ( ; ( value[0] && value[1] ) ; value += 2 ) {
memcpy ( buf, value, 2 );
- buf[
3
] = 0;
+ buf[
2
] = 0;
byte = strtoul ( buf, &endp, 16 );
if ( *endp != '\0' ) {
DBGC ( iscsi, "iSCSI %p saw invalid CHAP challenge "