summaryrefslogtreecommitdiff
path: root/src/qmail-smtpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmail-smtpd.c')
-rw-r--r--[-rwxr-xr-x]src/qmail-smtpd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qmail-smtpd.c b/src/qmail-smtpd.c
index b629948..3ca302c 100755..100644
--- a/src/qmail-smtpd.c
+++ b/src/qmail-smtpd.c
@@ -78,7 +78,7 @@ ssize_t saferead(int fd,char *buf,int len)
return r;
}
-char inbuf[BUFSIZE_LINE];
+char inbuf[BUFSIZE_MESS];
buffer bi = BUFFER_INIT(saferead,FDIN,inbuf,sizeof(inbuf));
char outbuf[BUFSIZE_LINE];
@@ -677,7 +677,7 @@ int bmfcheck()
if (!stralloc_append(&eddr,"=")) die_nomem();
if (!stralloc_0(&eddr)) die_nomem();
case_lowerb(eddr.s,eddr.len);
- if (str_diffn(remotehost + rlen - dlen,eddr.s + at + 1,dlen))
+ if (case_diffb(remotehost + rlen - dlen,eddr.s + at + 1,dlen))
if (constmap(&mapbmf,eddr.s + at,eddr.len - at - 1)) return -3;
/* '~' extended address for MISMATCHED Domains */
@@ -798,7 +798,7 @@ int localaddr(char *mf)
case_lowerb(localmfcheck,str_len(localmfcheck));
at = byte_rchr(mf,mflen,'@');
if (at < mflen)
- if (!str_diffn(localmfcheck,mf + at + 1,mflen - at - 1)) return 2;
+ if (!case_diffb(localmfcheck,mf + at + 1,mflen - at - 1)) return 2;
}
if (addrallowed(mf)) return 3;
return -2;