diff options
author | Simon Kelley <simon@thekelleys.org.uk> | 2016-07-06 21:42:27 +0100 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2016-07-06 21:42:27 +0100 |
commit | ce7845bf5429bd2962c9b2e7d75e2659f3b5c1a8 (patch) | |
tree | 033e6c0d18b5a1ecc5c9daeb73667214970d2c4f /src/radv.c | |
parent | d55f81f5fd53b1dfc2c4b3249b542f2d9679e236 (diff) | |
download | dnsmasq-ce7845bf5429bd2962c9b2e7d75e2659f3b5c1a8.tar.gz |
Check return of expand() always.
Diffstat (limited to 'src/radv.c')
-rw-r--r-- | src/radv.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -262,7 +262,9 @@ static void send_ra_alias(time_t now, int iface, char *iface_name, struct in6_ad parm.prio = calc_prio(ra_param); save_counter(0); - ra = expand(sizeof(struct ra_packet)); + + if (!(ra = expand(sizeof(struct ra_packet)))) + return; ra->type = ND_ROUTER_ADVERT; ra->code = 0; |