nwrap: in nwrap_files_getaddrinfo, treat failure of nwrap_convert_he_ai as error
authorMichael Adam <obnox@samba.org>
Wed, 11 Nov 2015 12:04:15 +0000 (13:04 +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 49bf9bb6526c48754ed21bfc3c8e6298705b0e64..15547775b0afe80e7fcca79d59bb340713959ea8 100644 (file)
@@ -3613,10 +3613,9 @@ static int nwrap_files_getaddrinfo(const char *name,
                                         &_ai,
                                         skip_canonname);
                if (rc != 0) {
-                       /* FIXME: Investigate if this is nice to do... */
                        NWRAP_LOG(NWRAP_LOG_ERROR,
                                  "Error in converting he to ai! Skipping.");
-                       continue;
+                       return rc;
                }
                skip_canonname = true;