mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-22 10:00:14 +00:00
session: Do not use removed API
from Jakub Jelen
This commit is contained in:
parent
9d7b2882b0
commit
885bc11469
@ -2620,7 +2620,7 @@ session_setup_x11fwd(struct ssh *ssh, Session *s)
|
|||||||
he = gethostbyname(hostname);
|
he = gethostbyname(hostname);
|
||||||
if (he == NULL) {
|
if (he == NULL) {
|
||||||
error("Can't get IP address for X11 DISPLAY.");
|
error("Can't get IP address for X11 DISPLAY.");
|
||||||
packet_send_debug("Can't get IP address for X11 DISPLAY.");
|
ssh_packet_send_debug(ssh, "Can't get IP address for X11 DISPLAY.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
memcpy(&my_addr, he->h_addr_list[0], sizeof(struct in_addr));
|
memcpy(&my_addr, he->h_addr_list[0], sizeof(struct in_addr));
|
||||||
|
Loading…
Reference in New Issue
Block a user