aboutsummaryrefslogtreecommitdiff
path: root/nis
diff options
context:
space:
mode:
Diffstat (limited to 'nis')
-rw-r--r--nis/nss_nis/nis-ethers.c4
-rw-r--r--nis/nss_nis/nis-initgroups.c4
-rw-r--r--nis/nss_nis/nis-proto.c4
-rw-r--r--nis/nss_nis/nis-rpc.c4
-rw-r--r--nis/nss_nis/nis-service.c4
5 files changed, 10 insertions, 10 deletions
diff --git a/nis/nss_nis/nis-ethers.c b/nis/nss_nis/nis-ethers.c
index 328d61f6c5..def4c22510 100644
--- a/nis/nss_nis/nis-ethers.c
+++ b/nis/nss_nis/nis-ethers.c
@@ -52,13 +52,13 @@ saveit (int instatus, char *inkey, int inkeylen, char *inval,
int invallen, char *indata)
{
if (instatus != YP_TRUE)
- return instatus;
+ return 1;
if (inkey && inkeylen > 0 && inval && invallen > 0)
{
struct response *newp = malloc (sizeof (struct response) + invallen + 1);
if (newp == NULL)
- return YP_FALSE; /* We have no error code for out of memory */
+ return 1; /* We have no error code for out of memory */
if (start == NULL)
start = newp;
diff --git a/nis/nss_nis/nis-initgroups.c b/nis/nss_nis/nis-initgroups.c
index c1efe9da93..33a9662b4c 100644
--- a/nis/nss_nis/nis-initgroups.c
+++ b/nis/nss_nis/nis-initgroups.c
@@ -57,14 +57,14 @@ saveit (int instatus, char *inkey, int inkeylen, char *inval,
intern_t *intern = (intern_t *) indata;
if (instatus != YP_TRUE)
- return instatus;
+ return 1;
if (inkey && inkeylen > 0 && inval && invallen > 0)
{
struct response_t *newp = malloc (sizeof (struct response_t)
+ invallen + 1);
if (newp == NULL)
- return YP_FALSE; /* We have no error code for out of memory */
+ return 1; /* We have no error code for out of memory */
if (intern->start == NULL)
intern->start = newp;
diff --git a/nis/nss_nis/nis-proto.c b/nis/nss_nis/nis-proto.c
index 7c1ce32074..f1069283ab 100644
--- a/nis/nss_nis/nis-proto.c
+++ b/nis/nss_nis/nis-proto.c
@@ -49,13 +49,13 @@ saveit (int instatus, char *inkey, int inkeylen, char *inval,
int invallen, char *indata)
{
if (instatus != YP_TRUE)
- return instatus;
+ return 1;
if (inkey && inkeylen > 0 && inval && invallen > 0)
{
struct response *newp = malloc (sizeof (struct response) + invallen + 1);
if (newp == NULL)
- return YP_FALSE; /* We have no error code for out of memory */
+ return 1; /* We have no error code for out of memory */
if (start == NULL)
start = newp;
diff --git a/nis/nss_nis/nis-rpc.c b/nis/nss_nis/nis-rpc.c
index e4a39542c5..d1ab94371a 100644
--- a/nis/nss_nis/nis-rpc.c
+++ b/nis/nss_nis/nis-rpc.c
@@ -57,14 +57,14 @@ saveit (int instatus, char *inkey, int inkeylen, char *inval,
intern_t *intern = (intern_t *)indata;
if (instatus != YP_TRUE)
- return instatus;
+ return 1;
if (inkey && inkeylen > 0 && inval && invallen > 0)
{
struct response_t *newp = malloc (sizeof (struct response_t)
+ invallen + 1);
if (newp == NULL)
- return YP_FALSE; /* We have no error code for out of memory */
+ return 1; /* We have no error code for out of memory */
if (intern->start == NULL)
intern->start = newp;
diff --git a/nis/nss_nis/nis-service.c b/nis/nss_nis/nis-service.c
index 32ac619de0..1e879d04e3 100644
--- a/nis/nss_nis/nis-service.c
+++ b/nis/nss_nis/nis-service.c
@@ -70,14 +70,14 @@ saveit (int instatus, char *inkey, int inkeylen, char *inval,
intern_t *intern = (intern_t *) indata;
if (instatus != YP_TRUE)
- return instatus;
+ return 1;
if (inkey && inkeylen > 0 && inval && invallen > 0)
{
struct response_t *newp = malloc (sizeof (struct response_t)
+ invallen + 1);
if (newp == NULL)
- return YP_FALSE; /* We have no error code for out of memory */
+ return 1; /* We have no error code for out of memory */
if (intern->start == NULL)
intern->start = newp;