]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
kr_bitcmp: add meaning to NULL inputs
authorVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 17 Mar 2017 11:51:42 +0000 (12:51 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 21 Mar 2017 14:52:21 +0000 (15:52 +0100)
commit2e9f190aed6a5d9ccbb72328ed500167f091e811
tree820b9eb748be17cb065f3a54a42ffc45a3d5ec75
parentdd971978835410f6c02b8d333ef8d59888117063
kr_bitcmp: add meaning to NULL inputs

Reasoning: we currently only use the function from lua modules and nil
values are very common there; I want to pick these changes to a bugfix
update without extensive checking whether the modules might pass
invalid input if user passes invalid config and thus introduce new
crashes.  The checks also seem cheap performance-wise.
lib/utils.c