From ee9df7a5103b418ecd19db990a1d80b1a32110e1 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Wed, 18 Apr 2007 18:33:44 +0000 Subject: [PATCH] Fixed bug with rem_host in "hosts allow" SVN revision: 1850 --- src/elogd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elogd.c b/src/elogd.c index d2c8b4ad..3116ba26 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -25233,7 +25233,7 @@ void server_loop(void) /*---- check "hosts allow" ----*/ if (getcfg(logbook, "Hosts allow", list, sizeof(list))) { - strcpy(rem_host_ip, (char *) inet_ntoa(acc_addr.sin_addr)); + strcpy(rem_host_ip, (char *) inet_ntoa(rem_addr)); n = strbreak(list, host_list, MAX_N_LIST, ",", FALSE); /* check if current connection matches anyone on the list */ for (i = 0; i < n; i++) {