git://git.exim.org
/
users
/
jgh
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Authenticator gsasl: client support. Bug 2349
[users/jgh/exim.git]
/
src
/
src
/
auths
/
get_data.c
diff --git
a/src/src/auths/get_data.c
b/src/src/auths/get_data.c
index 37dcd37cc54a43ed6fe23780eb58df3ad46d822b..8a05a82e4481922e8076dc285483e667b217d699 100644
(file)
--- a/
src/src/auths/get_data.c
+++ b/
src/src/auths/get_data.c
@@
-174,11
+174,7
@@
for (int i = 0; i < len; i++)
if (ss[i+1] != '^')
ss[i] = 0;
else
if (ss[i+1] != '^')
ss[i] = 0;
else
- {
- i++;
- len--;
- memmove(ss + i, ss + i + 1, len - i);
- }
+ if (--len > ++i) memmove(ss + i, ss + i + 1, len - i);
/* The first string is attached to the AUTH command; others are sent
unembellished. */
/* The first string is attached to the AUTH command; others are sent
unembellished. */
@@
-197,7
+193,7
@@
else
has succeeded. There may be more data to send, but is there any point
in provoking an error here? */
has succeeded. There may be more data to send, but is there any point
in provoking an error here? */
-if (smtp_read_response(sx,
US
buffer, buffsize, '2', timeout))
+if (smtp_read_response(sx, buffer, buffsize, '2', timeout))
{
*inout = NULL;
return OK;
{
*inout = NULL;
return OK;