summaryrefslogtreecommitdiff
path: root/nis
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2004-11-16 09:11:27 +0000
committerJakub Jelinek <jakub@redhat.com>2004-11-16 09:11:27 +0000
commit1c1465a4f7e7af0a5c5b512adf82af8174071431 (patch)
tree4788a66a64bf6068563dbd547ddff6b9c5dee850 /nis
parent4e2e518f6a0ca001e13c06d7463fb179e1e96124 (diff)
Updated to fedora-glibc-20041116T0856
Diffstat (limited to 'nis')
-rw-r--r--nis/nis_clone_obj.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/nis/nis_clone_obj.c b/nis/nis_clone_obj.c
index 5f9dd34b51..0b163fe662 100644
--- a/nis/nis_clone_obj.c
+++ b/nis/nis_clone_obj.c
@@ -41,27 +41,26 @@ nis_clone_object (const nis_object *src, nis_object *dest)
if (dest == NULL)
{
if ((res = calloc (1, sizeof (nis_object))) == NULL)
- goto out2;
+ goto out;
}
else
res = dest;
xdrmem_create (&xdrs, addr, size, XDR_ENCODE);
- if (!_xdr_nis_object (&xdrs, (nis_object *)src))
- goto out3;
+ if (!_xdr_nis_object (&xdrs, (nis_object *) src))
+ goto out2;
xdr_destroy (&xdrs);
xdrmem_create (&xdrs, addr, size, XDR_DECODE);
if (!_xdr_nis_object (&xdrs, res))
{
- out3:
+ out2:
if (dest == NULL)
free (res);
res = NULL;
}
- out:
xdr_destroy (&xdrs);
- out2:
+ out:
free (addr);
return res;