Skip to content

Commit

Permalink
fixup! uhcp: fix handling of pushed prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Nov 2, 2020
1 parent 07f2c7d commit 3e2d185
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/net/application_layer/uhcp/uhcp.c
Expand Up @@ -99,6 +99,7 @@ void uhcp_handle_push(uhcp_push_t *req, uint8_t *src, uint16_t port, uhcp_iface_
inet_ntop(AF_INET6, src, addr_str, INET6_ADDRSTRLEN);
uint8_t prefix[IN6ADDRSZ] = { 0 };
if (req->prefix_len == 0) {
LOG_ERROR("uhcp_handle_push(): prefix length 0\n");
return;
}
size_t prefix_bytes = (req->prefix_len + 7)>>3;
Expand Down

0 comments on commit 3e2d185

Please sign in to comment.