summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2019-04-04 02:47:40 +1100
committerDamien Miller <djm@mindrot.org>2019-04-04 02:47:40 +1100
commit885bc114692046d55e2a170b932bdc0092fa3456 (patch)
treee2ef15934af05aca008237e4a8dbb614dfbb791e /session.c
parent9d7b2882b0c9a5e9bf8312ce4075bf178e2b98be (diff)
session: Do not use removed API
from Jakub Jelen
Diffstat (limited to 'session.c')
-rw-r--r--session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/session.c b/session.c
index 48cfaafbf..ac06b08e9 100644
--- a/session.c
+++ b/session.c
@@ -2620,7 +2620,7 @@ session_setup_x11fwd(struct ssh *ssh, Session *s)
2620 he = gethostbyname(hostname); 2620 he = gethostbyname(hostname);
2621 if (he == NULL) { 2621 if (he == NULL) {
2622 error("Can't get IP address for X11 DISPLAY."); 2622 error("Can't get IP address for X11 DISPLAY.");
2623 packet_send_debug("Can't get IP address for X11 DISPLAY."); 2623 ssh_packet_send_debug(ssh, "Can't get IP address for X11 DISPLAY.");
2624 return 0; 2624 return 0;
2625 } 2625 }
2626 memcpy(&my_addr, he->h_addr_list[0], sizeof(struct in_addr)); 2626 memcpy(&my_addr, he->h_addr_list[0], sizeof(struct in_addr));