nwrap: log NULL alias name at ERROR level in nwrap_add_hname()
authorMichael Adam <obnox@samba.org>
Wed, 11 Nov 2015 11:29:55 +0000 (12:29 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 11 Jan 2016 11:25:30 +0000 (12:25 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/nss_wrapper/nss_wrapper.c

index 9ed11f0c86cadc95b85c2058c9178465ef5af157..71f5980dcf14df4c20e5898da9f40554f4ea3be6 100644 (file)
@@ -2719,7 +2719,7 @@ static bool nwrap_add_hname(struct nwrap_entdata *const ed)
                NWRAP_LOG(NWRAP_LOG_DEBUG, "Add alias: %s", h_name_alias);
 
                if (!nwrap_add_hname_alias(h_name_alias, ed)) {
-                       NWRAP_LOG(NWRAP_LOG_DEBUG,
+                       NWRAP_LOG(NWRAP_LOG_ERROR,
                                  "Unable to add alias: %s", h_name_alias);
                        return false;
                }