Fix typo that can cause ypbind to assume an error when one doesn't
actually exist if the server takes a dive.
This commit is contained in:
parent
5bd844ce5d
commit
3e82f2c697
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ypbind.c,v 1.22 1996/06/03 20:32:55 thorpej Exp $ */
|
||||
/* $NetBSD: ypbind.c,v 1.23 1996/06/03 20:44:51 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993 Theo de Raadt <deraadt@fsa.ca>
|
||||
|
@ -33,7 +33,7 @@
|
|||
*/
|
||||
|
||||
#ifndef LINT
|
||||
static char rcsid[] = "$NetBSD: ypbind.c,v 1.22 1996/06/03 20:32:55 thorpej Exp $";
|
||||
static char rcsid[] = "$NetBSD: ypbind.c,v 1.23 1996/06/03 20:44:51 thorpej Exp $";
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -484,7 +484,7 @@ ping(ypdb)
|
|||
AUTH_DESTROY(rpcua);
|
||||
return st;
|
||||
}
|
||||
if (xdr_ypdomain_wrap_string(&xdr, &dom)) {
|
||||
if (!xdr_ypdomain_wrap_string(&xdr, &dom)) {
|
||||
st = RPC_CANTENCODEARGS;
|
||||
AUTH_DESTROY(rpcua);
|
||||
return st;
|
||||
|
|
Loading…
Reference in New Issue