mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 16:21:06 +00:00
[BZ #305]
Update. 2004-12-08 Thorsten Kukuk <kukuk@suse.de> * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r): Add check if the value is not an empty string. [BZ #305]
This commit is contained in:
parent
66ebe46c7d
commit
cd8ea5d2a5
@ -1,3 +1,8 @@
|
|||||||
|
2004-12-08 Thorsten Kukuk <kukuk@suse.de>
|
||||||
|
|
||||||
|
* nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
|
||||||
|
Add check if the value is not an empty string. [BZ #305]
|
||||||
|
|
||||||
2004-11-29 Jakub Jelinek <jakub@redhat.com>
|
2004-11-29 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* stdlib/strtod_l.c (INTERNAL (__STRTOF)): If densize > 2
|
* stdlib/strtod_l.c (INTERNAL (__STRTOF)): If densize > 2
|
||||||
|
@ -88,7 +88,9 @@ _nss_nisplus_getnetgrent_r (struct __netgrent *result, char *buffer,
|
|||||||
|
|
||||||
result->type = triple_val;
|
result->type = triple_val;
|
||||||
|
|
||||||
if (hostlen == 0)
|
if (hostlen == 0 ||
|
||||||
|
NISENTRYVAL (result->position, 2,
|
||||||
|
(nis_result *) result->data)[0] == '\0')
|
||||||
result->val.triple.host = NULL;
|
result->val.triple.host = NULL;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -99,7 +101,9 @@ _nss_nisplus_getnetgrent_r (struct __netgrent *result, char *buffer,
|
|||||||
*cp++ = '\0';
|
*cp++ = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (userlen == 0)
|
if (userlen == 0 ||
|
||||||
|
NISENTRYVAL (result->position, 3,
|
||||||
|
(nis_result *) result->data)[0] == '\0')
|
||||||
result->val.triple.user = NULL;
|
result->val.triple.user = NULL;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -110,7 +114,9 @@ _nss_nisplus_getnetgrent_r (struct __netgrent *result, char *buffer,
|
|||||||
*cp++ = '\0';
|
*cp++ = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (domainlen == 0)
|
if (domainlen == 0 ||
|
||||||
|
NISENTRYVAL (result->position, 4,
|
||||||
|
(nis_result *) result->data)[0] == '\0')
|
||||||
result->val.triple.domain = NULL;
|
result->val.triple.domain = NULL;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user