diff options
author | Enji Cooper <ngie@FreeBSD.org> | 2017-02-24 06:49:31 +0000 |
---|---|---|
committer | Enji Cooper <ngie@FreeBSD.org> | 2017-02-24 06:49:31 +0000 |
commit | 8f7861b26f06fe0a288a8842ade028fb06600fca (patch) | |
tree | f85dfda9b46db9322dbb0e2b6be2493ebeee4cf5 /lib/libcam | |
parent | 29d14889f501acf336eb071df55cfc1adaea743a (diff) | |
download | src-8f7861b26f06fe0a288a8842ade028fb06600fca.tar.gz src-8f7861b26f06fe0a288a8842ade028fb06600fca.zip |
Fix up r314189
The conditional in do_buff_decode(..) after the while loop was accidentally
inverted. Only increment the pointer for fmt if it's not NUL.
MFC after: 2 weeks
X-MFC with: r314189
Reported by: pstef
Sponsored by: Dell EMC Isilon
Notes
Notes:
svn path=/head/; revision=314191
Diffstat (limited to 'lib/libcam')
-rw-r--r-- | lib/libcam/scsi_cmdparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcam/scsi_cmdparse.c b/lib/libcam/scsi_cmdparse.c index 582d29d4b612..4561b0b7e86c 100644 --- a/lib/libcam/scsi_cmdparse.c +++ b/lib/libcam/scsi_cmdparse.c @@ -169,7 +169,7 @@ do_buff_decode(u_int8_t *buff, size_t len, fmt++; } - if (*fmt == '\0') + if (*fmt != '\0') fmt++; /* Skip '}' */ field_name[i] = '\0'; break; |