diff options
Diffstat (limited to 'nis')
-rw-r--r-- | nis/nis_table.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/nis/nis_table.c b/nis/nis_table.c index d5b8f35a55..2cb21d4fda 100644 --- a/nis/nis_table.c +++ b/nis/nis_table.c @@ -78,10 +78,7 @@ __create_ib_request (const_nis_name name, unsigned int flags) if ((search_len + 1) >= size) { size += 1; - if (size == 1) - search_val = malloc (size * sizeof (nis_attr)); - else - search_val = realloc (search_val, size * sizeof (nis_attr)); + search_val = realloc (search_val, size * sizeof (nis_attr)); if (search_val == NULL) { nis_free_request (ibreq); |