ppp - Fix seg-fault on crypt failure
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 27 Sep 2017 21:51:48 +0000 (14:51 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 27 Sep 2017 21:53:27 +0000 (14:53 -0700)
commitf4a9869feb646aafe72de6e5d61051a023a02676
tree60adb5561246b4200b95e92153fa0d40db403782
parent99164ac9a339cbcd97ff68babd2179fb4a9a50b7
ppp - Fix seg-fault on crypt failure

* Fix an issue where the program seg-faults if crypt() returns
  NULL.  Return 0 (failure for this routine) in case of NULL

Submitted-by: lubos
usr.sbin/ppp/auth.c