openafs/tests/common
Jeffrey Hutzelman d527a80825 Fix unchecked calls to asprintf
The return value of asprintf() is the number of bytes printed, or -1 if there
was an error allocating a large enough buffer.  In the latter case, the value
of the result string is undefined, and so it cannot be counted on to be NULL.

This change fixes numerous places where the result of asprintf is checked
incorrectly (by examining the output pointer and not the return value) or not
at all.

Change-Id: I9fef14d60c096795d59c42798f3906041fb18c86
Reviewed-on: http://gerrit.openafs.org/9978
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: D Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
2014-12-01 11:27:15 -05:00
..
common.h tests: Improve failure mode for unresolvable hostname 2013-02-17 20:51:15 -08:00
config.c tests: Improve afstest_UnlinkTestConfig cleanup 2013-05-28 15:57:31 -07:00
Makefile.in tests: Tidy up loopback adapter tests 2012-10-12 18:32:17 -07:00
network.c tests: Improve failure mode for unresolvable hostname 2013-02-17 20:51:15 -08:00
rxkad.c tests: Move token faking code to its own file 2012-04-22 06:18:19 -07:00
servers.c Fix unchecked calls to asprintf 2014-12-01 11:27:15 -05:00
ubik.c tests: Abstract out code to produce a Ubik client 2012-04-22 06:17:17 -07:00