]> sourceware.org Git - systemtap.git/commit
nsscommon: Heed what fgets returns
authorJosh Stone <jistone@redhat.com>
Mon, 21 Mar 2011 22:22:09 +0000 (15:22 -0700)
committerJosh Stone <jistone@redhat.com>
Mon, 21 Mar 2011 22:22:09 +0000 (15:22 -0700)
commitce4defd0134872508c9801ee666f9b1eb6a544b1
treec40796ea2efbda6aa9fc949ce0f55d9e7a6223dc
parent873c85602115e1cd92c3c72a7e3cbcd278d6f282
nsscommon: Heed what fgets returns

My F14 gcc rightfully warned that a return value of fgets was unused.
It may return NULL on error or EOF, in which case we should free our
memory and return NULL to NSS as well.  I also tweaked the newline stomp
to tolerate missing newline, e.g. with oversized input, although that
case it not likely going to work anyway.

* nsscommon.c (nssPasswordCallback): Check fgets' return for success.
nsscommon.c
This page took 0.02718 seconds and 5 git commands to generate.