openwrt / odhcp6c

This repository is a mirror of https://git.openwrt.org/?p=project/odhcp6c.git. It is for reference only and is not active for checks-ins or reporting issues; issues should be reported at: https://bugs.openwrt.org. Pull requests will be accepted which will be merged in odhcp6c.git
GNU General Public License v2.0
78 stars 84 forks source link

Remove access to uninitialised array #94

Closed lukedd closed 1 day ago

lukedd commented 1 day ago

Remove an access to an uninitialised array, which is causing error handling to be inadvertently skipped for replies containing IA_PD or IA_NA with an error status code.

handled_status_codes is an array of length 7, but only the first element is initialised. This array looks like it was intended as a mechanism for indicating which status codes should be considered errors, but this mechanism is not actually used.