aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregory Neil Shapiro <gshapiro@FreeBSD.org>2003-09-17 20:22:03 +0000
committerGregory Neil Shapiro <gshapiro@FreeBSD.org>2003-09-17 20:22:03 +0000
commit517121dc1fd2d2d48543f5deb3246e6311f1c317 (patch)
treef84da0bbdf551f669f88e7596fe74efa184bf521
parent5282423a4af2d919f0b6bb1f63bdf9db9c8b9fc8 (diff)
downloadsrc-517121dc1fd2d2d48543f5deb3246e6311f1c317.tar.gz
src-517121dc1fd2d2d48543f5deb3246e6311f1c317.zip
MFC: sendmail address parsing bug fix
Approved by: so (nectar)
Notes
Notes: svn path=/stable/3/; revision=120179
-rw-r--r--contrib/sendmail/src/parseaddr.c4
-rw-r--r--contrib/sendmail/src/version.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/contrib/sendmail/src/parseaddr.c b/contrib/sendmail/src/parseaddr.c
index 83b0e44ddd89..c614c9e20c41 100644
--- a/contrib/sendmail/src/parseaddr.c
+++ b/contrib/sendmail/src/parseaddr.c
@@ -491,7 +491,11 @@ prescan(addr, delim, pvpbuf, pvpbsize, delimptr, toktab)
addr[MAXNAME] = '\0';
returnnull:
if (delimptr != NULL)
+ {
+ if (p > addr)
+ p--;
*delimptr = p;
+ }
CurEnv->e_to = saveto;
return (NULL);
}
diff --git a/contrib/sendmail/src/version.c b/contrib/sendmail/src/version.c
index 458cf5ac73bb..4b9182a274f2 100644
--- a/contrib/sendmail/src/version.c
+++ b/contrib/sendmail/src/version.c
@@ -14,4 +14,4 @@
static char sccsid[] = "@(#)version.c 8.9.3.1 (Berkeley) 2/4/1999";
#endif /* not lint */
-char Version[] = "8.9.3p2";
+char Version[] = "8.9.3p3";