]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-ib: Remove a use of ctdb_set_error()
authorMartin Schwenke <mschwenke@ddn.com>
Fri, 26 Jul 2024 00:45:36 +0000 (10:45 +1000)
committerVolker Lendecke <vl@samba.org>
Tue, 20 Aug 2024 13:06:33 +0000 (13:06 +0000)
Now the transport code is free of ctdb_set_error().

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
ctdb/ib/ibw_ctdb.c

index 38314c32ebcf87415fb9efd13c53cc4b81d4d34c..a509989d52b069284c04851105ba9575df5326e8 100644 (file)
@@ -44,8 +44,7 @@ int ctdb_ibw_get_address(struct ctdb_context *ctdb,
        if (inet_pton(AF_INET, address, addr) <= 0) {
                struct hostent *he = gethostbyname(address);
                if (he == NULL || he->h_length > sizeof(*addr)) {
-                       ctdb_set_error(ctdb, "invalid network address '%s'\n", 
-                                      address);
+                       DBG_ERR("invalid network address '%s'\n", address);
                        return -1;
                }
                memcpy(addr, he->h_addr, he->h_length);