Skip to content

Commit

Permalink
Fix issues found by coverity (ARMmbed#2087)
Browse files Browse the repository at this point in the history
Fix remaining coverity issue:
-348373 Dereference after null check (dhcpv6_client_service.c)
  • Loading branch information
Arto Kinnunen authored May 17, 2019
1 parent 2c4981b commit ce36f2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/DHCPv6_client/dhcpv6_client_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,9 @@ void dhcpv6_renew(protocol_interface_info_entry_t *interface, if_address_entry_t
payload_len = libdhcpv6_address_request_message_len(srv_data_ptr->clientLinkIdType, srv_data_ptr->serverLinkType, 0, !dhcp_client.no_address_hint);
payload_ptr = ns_dyn_mem_temporary_alloc(payload_len);
if (payload_ptr == NULL) {
addr->state_timer = 200; //Retry after 20 seconds
if (addr) {
addr->state_timer = 200; //Retry after 20 seconds
}
tr_error("Out of memory");
return ;
}
Expand Down

0 comments on commit ce36f2c

Please sign in to comment.