chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libsystemd-dhcp: Factor out test code for DHCP message verification
[elogind.git]
/
src
/
libsystemd-dhcp
/
test-dhcp-option.c
diff --git
a/src/libsystemd-dhcp/test-dhcp-option.c
b/src/libsystemd-dhcp/test-dhcp-option.c
index e2a680064c116db3bae3c5ef36c1d48a34755d14..ac0b0a435a93986b9ac5e3cdbbf551e873e2e277 100644
(file)
--- a/
src/libsystemd-dhcp/test-dhcp-option.c
+++ b/
src/libsystemd-dhcp/test-dhcp-option.c
@@
-198,6
+198,7
@@
static int test_options_cb(uint8_t code, uint8_t len, const uint8_t *option,
*descpos = -1;
}
+ assert(descpos);
assert(*descpos != -1);
optcode = descoption[*descpos];