dhcpc: Don't use an uninitialized variable
This commit is contained in:
parent
33c794ad60
commit
1cb82e58ac
@ -424,7 +424,7 @@ FAR void *dhcpc_open(FAR const char *interface, FAR const void *macaddr,
|
|||||||
pdhcpc->sockfd = socket(PF_INET, SOCK_DGRAM, 0);
|
pdhcpc->sockfd = socket(PF_INET, SOCK_DGRAM, 0);
|
||||||
if (pdhcpc->sockfd < 0)
|
if (pdhcpc->sockfd < 0)
|
||||||
{
|
{
|
||||||
ninfo("socket handle %d\n", ret);
|
ninfo("socket handle %d\n", pdhcpc->sockfd);
|
||||||
free(pdhcpc);
|
free(pdhcpc);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user