NetworkBlockDevice / nbd

Network Block Device
GNU General Public License v2.0
459 stars 119 forks source link

nbd-server: fix bug in authentication for v6-mapped IPv4 addresses #138

Closed lv-mz closed 2 years ago

lv-mz commented 2 years ago

For v6-mapped address authentication, when comparing the client IP address with the address in the authentication file, we should skip the first 12 identical prefixes and compare the real IP address.

This Fixes: #137

yoe commented 2 years ago

Could you add a test case to tests/code/clientacl.c that would trigger on this bug, so we don't reintroduce it?