-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Closed
Labels
bugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bugLow impact/importance bug
Description
I found that when I enabled net dhcp debug in prj.conf
CONFIG_NET_DEBUG_APP=y
CONFIG_NET_DEBUG_DHCPV4=y
in function dhcpv4_send_request, when dhcpv4 enter requesting state, the ciaddr is NULL, so the line325
322 NET_DBG("send request dst=%s xid=0x%x ciaddr=%s%s%s timeout=%us",
323 net_sprint_ipv4_addr(server_addr),
324 iface->config.dhcpv4.xid,
325 net_sprint_ipv4_addr(ciaddr),
326 with_server_id ? " +server-id" : "",
327 with_requested_ip ? " +requested-ip" : "",
328 timeout);
will read ip data from NULL pointer.
Metadata
Metadata
Assignees
Labels
bugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bugLow impact/importance bug