]> git.ipfire.org Git - thirdparty/iptables.git/commit
libiptc: guard chain index allocation for different malloc implementations
authorJan Engelhardt <jengelh@medozas.de>
Wed, 26 Nov 2008 16:18:08 +0000 (17:18 +0100)
committerPatrick McHardy <kaber@trash.net>
Wed, 26 Nov 2008 16:18:08 +0000 (17:18 +0100)
commit0eee3009e7015b82a46b2eccad91f759d75ec4df
tree7aa58d6aa5aa62b10baec1a4d2f8b1507773b289
parent64f948b24407c3cf3d02476059a3f9fa0265cb3d
libiptc: guard chain index allocation for different malloc implementations

Some libc implementations such as ÂµClibc return NULL on malloc(0).
They are free to do that per C standard.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signeed-off-by: Patrick McHardy <kaber@trash.net>
libiptc/libiptc.c