]> git.ipfire.org Git - thirdparty/bind9.git/commit
isc_event_allocate() cannot fail, remove the fail handling blocks
authorOndřej Surý <ondrej@sury.org>
Thu, 29 Aug 2019 08:29:53 +0000 (10:29 +0200)
committerOndřej Surý <ondrej@sury.org>
Fri, 30 Aug 2019 06:55:34 +0000 (08:55 +0200)
commit50e109d65910beed7508ba4829d4b7263acbadfd
tree99988d57292fed71d27aff9e22b332d8b7cfd85a
parent2d12def6eef8925cafbebbc7e1f09c5d6a7ee196
isc_event_allocate() cannot fail, remove the fail handling blocks

isc_event_allocate() calls isc_mem_get() to allocate the event structure.  As
isc_mem_get() cannot fail softly (e.g. it never returns NULL), the
isc_event_allocate() cannot return NULL, hence we remove the (ret == NULL)
handling blocks using the semantic patch from the previous commit.
21 files changed:
bin/dig/dighost.c
bin/dnssec/dnssec-signzone.c
bin/named/server.c
bin/tests/system/dyndb/driver/syncptr.c
lib/dns/cache.c
lib/dns/client.c
lib/dns/dispatch.c
lib/dns/dnstap.c
lib/dns/lookup.c
lib/dns/master.c
lib/dns/masterdump.c
lib/dns/rbtdb.c
lib/dns/request.c
lib/dns/resolver.c
lib/dns/validator.c
lib/dns/zone.c
lib/isc/app.c
lib/isc/task.c
lib/isc/unix/socket.c
lib/isc/win32/socket.c
lib/ns/update.c