torture: Add better debug message when tsocket_address_inet_from_strings fails
[samba.git] / source4 / torture / rpc / lsa.c
index 44cdbdc5ede9b4f88a4c456ea000af1488c45608..4ba246f1b4f9bd326beab398dc7f2c0663cac54b 100644 (file)
@@ -4186,7 +4186,10 @@ static bool check_dom_trust_pw(struct dcerpc_pipe *p,
                                               host,
                                               lpcfg_cldap_port(tctx->lp_ctx),
                                               &dest_addr);
                                               host,
                                               lpcfg_cldap_port(tctx->lp_ctx),
                                               &dest_addr);
-       torture_assert_int_equal(tctx, rc, 0, "tsocket_address_inet_from_strings");
+       torture_assert_int_equal(tctx, rc, 0,
+                                talloc_asprintf(tctx,
+                                                "tsocket_address_inet_from_strings failed parsing %s:%d",
+                                                host, lpcfg_cldap_port(tctx->lp_ctx)));
 
        /* cldap_socket_init should now know about the dest. address */
        status = cldap_socket_init(tctx, NULL, dest_addr, &cldap);
 
        /* cldap_socket_init should now know about the dest. address */
        status = cldap_socket_init(tctx, NULL, dest_addr, &cldap);