(nis_lookup): Remove unnecessary __nisbind_destroy calls.
authordrepper <drepper>
Thu, 8 Dec 2005 20:19:11 +0000 (20:19 +0000)
committerdrepper <drepper>
Thu, 8 Dec 2005 20:19:11 +0000 (20:19 +0000)
__nisbind_next does all that.

nis/nis_lookup.c

index 5f2fb59..4cb34dd 100644 (file)
@@ -81,7 +81,6 @@ nis_lookup (const_nis_name name, const unsigned int flags)
        {
          if (__nisbind_next (&bptr) != NIS_SUCCESS)
            {
-             __nisbind_destroy (&bptr);
              nis_free_directory (dir);
              NIS_RES_STATUS (res) = NIS_NAMEUNREACHABLE;
              return res;
@@ -167,7 +166,6 @@ nis_lookup (const_nis_name name, const unsigned int flags)
                      {
                        if (__nisbind_next (&bptr) != NIS_SUCCESS)
                          {
-                           __nisbind_destroy (&bptr);
                            nis_free_directory (dir);
                            return res;
                          }