diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2018-05-19 22:37:27 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2018-05-24 21:53:55 +0200 |
commit | d7aa414e47da1ab41df8b07307087c0e91b4ffa9 (patch) | |
tree | dd15cc4ad1ea8f3bcb6822fa1af28b923ad62931 /src/dhcpv6.h | |
parent | 373495ad610cfffaeac833283d1431e6328a109a (diff) |
dhcpv6: improve error checking in dhcpv6_setup_interface()
Improve error checking fixing resource leakage detected by Coverity in
CID 1430880
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/dhcpv6.h')
-rw-r--r-- | src/dhcpv6.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/dhcpv6.h b/src/dhcpv6.h index 08dac6c..7e2f936 100644 --- a/src/dhcpv6.h +++ b/src/dhcpv6.h @@ -16,11 +16,9 @@ #include <libubox/ustream.h> #include "odhcpd.h" -#define ALL_DHCPV6_RELAYS {{{0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02}}} +#define ALL_DHCPV6_RELAYS "ff02::1:2" -#define ALL_DHCPV6_SERVERS {{{0xff, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x03}}} +#define ALL_DHCPV6_SERVERS "ff05::1:3" #define DHCPV6_CLIENT_PORT 546 #define DHCPV6_SERVER_PORT 547 |