openwrt / odhcpd

This repository is a mirror of https://git.openwrt.org/?p=project/odhcpd.git. Pull requests will be accepted which will be merged in odhcpd.git
GNU General Public License v2.0
160 stars 96 forks source link

fix null pointer dereference for INFORM messages #189

Closed robekl closed 1 year ago

robekl commented 1 year ago

The variable a was unset when an INFORM message was received, causing a segfault. This checks a before dereferencing.

Checked by running locally and sending a DHCP INFORM message and verifying that the process does not segfault.

robekl commented 1 year ago

@dedeckeh Please review

dedeckeh commented 1 year ago

Patch pushed to master; thx