mirror of
https://github.com/samba-team/samba.git
synced 2024-12-21 09:34:19 +03:00
ctdb-ib: Remove a use of ctdb_set_error()
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>
This commit is contained in:
parent
b433663414
commit
17959ccb4b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user