diff --git a/ChangeLog b/ChangeLog index 592e42d4..4e21c37f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -21,6 +21,10 @@ v0.71.2 16-Jan-2005 libdiesel.a: Changed the maximum string length from 2560 to 4096 characters. + libmbinet.a: + Fixed error messages when the host to connect to has a DNS + error. + mbcico: Added protection during binkp receive for zero bytes compressed data frames, this will cause uncompress error -5 because zero diff --git a/lib/nntp.c b/lib/nntp.c index e4684482..2a5b6fd4 100644 --- a/lib/nntp.c +++ b/lib/nntp.c @@ -62,14 +62,14 @@ int nntp_connect(void) nntp_rem.sin_family = AF_INET; if ((nhp = gethostbyname(CFG.nntpnode)) == NULL) { - WriteError("$NNTP: can't find host %s", CFG.nntpnode); + WriteError("NNTP: can't find host %s", CFG.nntpnode); return -1; } nntp_rem.sin_addr.s_addr = ((struct in_addr *)(nhp->h_addr))->s_addr; if ((nsp = getservbyname("nntp", "tcp")) == NULL) { - WriteError("$NNTP: can't find service port for nntp/tcp"); + WriteError("NNTP: can't find service port for nntp/tcp"); return -1; } nntp_rem.sin_port = nsp->s_port; diff --git a/lib/pop3.c b/lib/pop3.c index a59e19c1..735f8beb 100644 --- a/lib/pop3.c +++ b/lib/pop3.c @@ -58,7 +58,7 @@ int pop3_connect(void) pop3_rem.sin_family = AF_INET; if ((php = gethostbyname(CFG.popnode)) == NULL) { - WriteError("$POP3: can't find host %s", CFG.popnode); + WriteError("POP3: can't find host %s", CFG.popnode); return -1; } @@ -69,7 +69,7 @@ int pop3_connect(void) * RedHat doesn't follow IANA specs and uses pop-3 in /etc/services */ if ((psp = getservbyname("pop-3", "tcp")) == NULL) { - WriteError("$POP3: can't find service port for pop3/tcp"); + WriteError("POP3: can't find service port for pop3/tcp"); return -1; } } diff --git a/lib/smtp.c b/lib/smtp.c index 4b1e95d4..cc9fbaea 100644 --- a/lib/smtp.c +++ b/lib/smtp.c @@ -61,14 +61,14 @@ int smtp_connect(void) smtp_rem.sin_family = AF_INET; if ((shp = gethostbyname(CFG.smtpnode)) == NULL) { - WriteError("$SMTP: can't find host %s", CFG.smtpnode); + WriteError("SMTP: can't find host %s", CFG.smtpnode); return -1; } smtp_rem.sin_addr.s_addr = ((struct in_addr *)(shp->h_addr))->s_addr; if ((ssp = getservbyname("smtp", "tcp")) == NULL) { - WriteError("$SMTP: can't find service port for smtp/tcp"); + WriteError("SMTP: can't find service port for smtp/tcp"); return -1; } smtp_rem.sin_port = ssp->s_port;