Do not assume that asprintf() clears the pointer on failure, which
authormillert <millert@openbsd.org>
Wed, 3 Jun 2015 02:24:36 +0000 (02:24 +0000)
committermillert <millert@openbsd.org>
Wed, 3 Jun 2015 02:24:36 +0000 (02:24 +0000)
commitaa48e8d13779c959af7d1e175e87101276d885ff
tree386ae5a481a265f981601e62dce9123561813c69
parentaead66f0fb3c461734b88d1b01f18749cd39f7bc
Do not assume that asprintf() clears the pointer on failure, which
is non-portable.  Also add missing asprintf() return value checks.
OK deraadt@ guenther@ doug@
21 files changed:
lib/libc/gen/getgrouplist.c
lib/libc/gen/getpwent.c
lib/libutil/pidfile.c
libexec/ld.so/ldconfig/prebind.c
libexec/ld.so/ldconfig/prebind_delete.c
libexec/spamd-setup/spamd-setup.c
sbin/disklabel/disklabel.c
sbin/iked/iked.c
sbin/iked/parse.y
sbin/ipsecctl/parse.y
sbin/isakmpd/field.c
sbin/pfctl/pfctl_parser.c
usr.sbin/httpd/httpd.c
usr.sbin/ldapd/btree.c
usr.sbin/ldapd/index.c
usr.sbin/ldapd/ldape.c
usr.sbin/ldapd/search.c
usr.sbin/relayd/relayd.c
usr.sbin/rtadvd/dump.c
usr.sbin/smtpd/smtpd.c
usr.sbin/snmpd/snmpd.c