diff options
| author | Joerg Wunsch <joerg@FreeBSD.org> | 2002-10-29 12:45:32 +0000 |
|---|---|---|
| committer | Joerg Wunsch <joerg@FreeBSD.org> | 2002-10-29 12:45:32 +0000 |
| commit | 6aa4e03fbe8f1ff0aa1bb13991311debc6a6294f (patch) | |
| tree | 1e87618d9234b5c020a3ff2a3563193d9ff89961 | |
| parent | b68fbebd5a4b5e95b45134756f750cfbfee020ee (diff) | |
Notes
| -rw-r--r-- | usr.bin/chpass/chpass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/chpass/chpass.c b/usr.bin/chpass/chpass.c index 22ca2ac7d130..ba8baaa6aaec 100644 --- a/usr.bin/chpass/chpass.c +++ b/usr.bin/chpass/chpass.c @@ -166,7 +166,7 @@ main(int argc, char *argv[]) } #ifdef YP - if ((pw->pw_fields & _PWF_SOURCE) == _PWF_NIS) { + if (pw != NULL && (pw->pw_fields & _PWF_SOURCE) == _PWF_NIS) { ypclnt = ypclnt_new(yp_domain, "passwd.byname", yp_host); master_mode = (ypclnt != NULL && ypclnt_connect(ypclnt) != -1 && |
