* citserver.c: we now ask locate_host() to fill in
authorArt Cancro <ajc@citadel.org>
Sun, 24 Dec 2006 05:43:34 +0000 (05:43 +0000)
committerArt Cancro <ajc@citadel.org>
Sun, 24 Dec 2006 05:43:34 +0000 (05:43 +0000)
  the CC->cs_addr string.  I don't know why we weren't doing this before.

citadel/citserver.c

index 54e57695dad4f037396fe53cbd0cda2c5747a031..df8599791b7868b94fdd9e49d1f50c02a349d222 100644 (file)
@@ -417,7 +417,7 @@ void cmd_iden(char *argbuf)
                lprintf(CTDL_DEBUG, "Looking up hostname '%s'\n", from_host);
                if ((addr.s_addr = inet_addr(from_host)) != -1) {
                        locate_host(CC->cs_host, sizeof CC->cs_host,
-                               NULL, 0,
+                               CC->cs_addr, sizeof CC->cs_addr,
                                &addr);
                }
                else {