]> git.ozlabs.org Git - ppp.git/commitdiff
pppd: Don't crash if crypt() returns NULL
authorPaul Mackerras <paulus@samba.org>
Sun, 20 May 2012 04:14:55 +0000 (14:14 +1000)
committerPaul Mackerras <paulus@samba.org>
Sun, 20 May 2012 06:49:41 +0000 (16:49 +1000)
It is possible for crypt() to return NULL under some circumstances,
so we need to check the return value before passing it to strcmp().
If we do get NULL from crypt(), treat it as an authentication failure.

Reported-by: Paul Wouters <pwouters@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>

No differences found