Commit 9b9907d
authored
Make the vmnet caller responsible for a zoneless prefix
Per review, the vmnet path no longer strips the zone itself. It renders
`lower` as-is and checks the `inet_pton` result, so a prefix it cannot parse
is rejected instead of quietly accepted, leaving the caller responsible for
supplying a zoneless prefix.
Checking the result also closes a pre-existing hole: it was discarded, so an
address `inet_pton` refused left the buffer zeroed and configured `::`.1 parent b5fc254 commit 9b9907d
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
298 | 301 | | |
299 | 302 | | |
300 | 303 | | |
| |||
0 commit comments