summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilip Hazel <ph10@hermes.cam.ac.uk>2007-01-23 12:22:00 +0000
committerPhilip Hazel <ph10@hermes.cam.ac.uk>2007-01-23 12:22:00 +0000
commitf08724248e7a36fab313e332288de73165d07fe5 (patch)
tree190fe9ddd9797fc038e1048d252e8f5f0445f5d8 /src
parentf91ad6b720144847118637f8a0666ff27171681b (diff)
Fix $auth1 problem in dovecot authenticator.
Diffstat (limited to 'src')
-rw-r--r--src/src/auths/dovecot.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/src/auths/dovecot.c b/src/src/auths/dovecot.c
index e040bcf93..61b0f0b4f 100644
--- a/src/src/auths/dovecot.c
+++ b/src/src/auths/dovecot.c
@@ -1,4 +1,4 @@
-/* $Cambridge: exim/src/src/auths/dovecot.c,v 1.3 2006/10/16 15:44:36 ph10 Exp $ */
+/* $Cambridge: exim/src/src/auths/dovecot.c,v 1.4 2007/01/23 12:22:00 ph10 Exp $ */
/*
* Copyright (c) 2004 Andrey Panin <pazke@donpac.ru>
@@ -278,7 +278,8 @@ int auth_dovecot_server(auth_instance *ablock, uschar *data)
uschar *p = US strchr(args[2], '=');
if (p) {
++p;
- expand_nstring[1] = auth_vars[0] = p;
+ expand_nstring[1] = auth_vars[0] =
+ string_copy(p); /* PH */
expand_nlength[1] = Ustrlen(p);
expand_nmax = 1;
}
@@ -296,7 +297,8 @@ int auth_dovecot_server(auth_instance *ablock, uschar *data)
OUT("authentication socket protocol error, username missing");
p++;
- expand_nstring[1] = auth_vars[0] = p;
+ expand_nstring[1] = auth_vars[0] =
+ string_copy(p); /* PH */
expand_nlength[1] = Ustrlen(p);
expand_nmax = 1;
}