getcanonname: Fix a typo

This code is generally unused in practice since there don't seem to be
any NSS modules that only implement _nss_MOD_gethostbyname2_r and not
_nss_MOD_gethostbyname3_r.

Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
This commit is contained in:
Siddhesh Poyarekar 2023-09-05 17:04:05 -04:00
parent e7190fc73d
commit 3bf7bab88b

View File

@ -337,7 +337,7 @@ getcanonname (nss_action_list nip, struct gaih_addrtuple *at, const char *name)
string. */
s = (char *) name;
}
return __strdup (name);
return __strdup (s);
}
/* Process looked up canonical name and if necessary, decode to IDNA. Result