Fixed wrong server address for nntp

This commit is contained in:
Michiel Broek
2011-03-29 20:27:16 +02:00
parent 3078b10ea6
commit ad0d7cc679
3 changed files with 4 additions and 4 deletions

View File

@@ -56,8 +56,8 @@ int nntp_connect(void)
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
if ((rc = getaddrinfo(CFG.popnode, servport, &hints, &res)) != 0) {
WriteError("getaddrinfo %s:%s %s\n", CFG.popnode, servport, gai_strerror(rc));
if ((rc = getaddrinfo(CFG.nntpnode, servport, &hints, &res)) != 0) {
WriteError("getaddrinfo %s:%s %s\n", CFG.nntpnode, servport, gai_strerror(rc));
return -1;
}