diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-03 16:30:32 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-04 00:31:46 +0900 |
commit | 383bb2bc1a7366f6d13feb9c7095565bd76dd466 (patch) | |
tree | 724bfa7de98228db11dd5919224496abae1e7313 /src/shared/vlan-util.c | |
parent | 2e5da68b7d9e2604e42feb8b1f6d43acec4937d7 (diff) | |
download | systemd-383bb2bc1a7366f6d13feb9c7095565bd76dd466.tar.gz systemd-383bb2bc1a7366f6d13feb9c7095565bd76dd466.tar.bz2 systemd-383bb2bc1a7366f6d13feb9c7095565bd76dd466.zip |
vlan-util: add assertions to parse_vlanid()
Diffstat (limited to 'src/shared/vlan-util.c')
-rw-r--r-- | src/shared/vlan-util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/vlan-util.c b/src/shared/vlan-util.c index 400994a354..2f9df7dd1b 100644 --- a/src/shared/vlan-util.c +++ b/src/shared/vlan-util.c @@ -9,6 +9,9 @@ int parse_vlanid(const char *p, uint16_t *ret) { uint16_t id; int r; + assert(p); + assert(ret); + r = safe_atou16(p, &id); if (r < 0) return r; |