]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Wed, 4 Apr 2001 08:14:00 +0000 (08:14 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 4 Apr 2001 08:14:00 +0000 (08:14 +0000)
2001-04-04  Ulrich Drepper  <drepper@redhat.com>

* nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Pass
pointer to int as last parameter of yp_match.
Patch by kanazawa@flab.fujitsu.co.jp.

ChangeLog
nis/nss_nis/nis-service.c

index f3baabbf8a2838846795a25e5b8e3f11332c587f..81aa465167be8684778e71b5db0a0ba424f0b708 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-04-04  Ulrich Drepper  <drepper@redhat.com>
+
+       * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Pass
+       pointer to int as last parameter of yp_match.
+       Patch by kanazawa@flab.fujitsu.co.jp.
+
 2001-04-03  Ulrich Drepper  <drepper@redhat.com>
 
        * resolv/netdb.h (gai_strerror): Make return value const.
index ea1e06eab38e60f9fe4f13dc4f6ad1e6d7638873..a161aa11286f11ab199e8173770c90446727ede4 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1996,1997,1998,1999,2000,2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Thorsten Kukuk <kukuk@suse.de>, 1996.
 
@@ -228,6 +228,7 @@ _nss_nis_getservbyname_r (const char *name, const char *protocol,
       char key[strlen (name) + strlen (protocol) + 2];
       char *cp, *domain, *result;
       size_t keylen, len;
+      int int_len;
 
       /* If this fails, the other solution will also fail. */
       if (yp_get_default_domain (&domain))
@@ -239,7 +240,8 @@ _nss_nis_getservbyname_r (const char *name, const char *protocol,
       stpcpy (cp, protocol);
       keylen = strlen (key);
       status = yperr2nss (yp_match (domain, "services.byservicename", key,
-                                   keylen, &result, &len));
+                                   keylen, &result, &int_len));
+      len = int_len;
 
       /* If we found the key, it's ok and parse the result. If not,
         fall through and parse the complete table. */