]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared: make dns_packet_read_uint{8,32} accept NULL ret 41426/head
authorMichael Vogt <michael@amutable.com>
Tue, 31 Mar 2026 15:40:03 +0000 (17:40 +0200)
committerMichael Vogt <michael@amutable.com>
Tue, 31 Mar 2026 16:30:40 +0000 (18:30 +0200)
commitdbc530390970cb3f07dbc9d97710d11276e88394
tree85b19e681b7effaeff65620df0b3845088471829
parentbb94af45c1e8fd87127ac875a09a8efa80df4fb6
shared: make dns_packet_read_uint{8,32} accept NULL ret

The shared/ dns_packet_read_uint*() functions used to be a bit
inconsistent when it comes to the handling of NULL in *ret. The
helpers dns_packet_read_{uint16,name} accepted NULL but the
dns_packet_read_uint{8,32} did not.

This commit makes them all symmetric in accepting NULL.
src/shared/dns-packet.c