mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +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) {
|
if (inet_pton(AF_INET, address, addr) <= 0) {
|
||||||
struct hostent *he = gethostbyname(address);
|
struct hostent *he = gethostbyname(address);
|
||||||
if (he == NULL || he->h_length > sizeof(*addr)) {
|
if (he == NULL || he->h_length > sizeof(*addr)) {
|
||||||
ctdb_set_error(ctdb, "invalid network address '%s'\n",
|
DBG_ERR("invalid network address '%s'\n", address);
|
||||||
address);
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
memcpy(addr, he->h_addr, he->h_length);
|
memcpy(addr, he->h_addr, he->h_length);
|
||||||
|
Loading…
Reference in New Issue
Block a user