summaryrefslogtreecommitdiffstats
path: root/src/xsasl/xsasl_dovecot_server.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xsasl/xsasl_dovecot_server.c')
-rw-r--r--src/xsasl/xsasl_dovecot_server.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xsasl/xsasl_dovecot_server.c b/src/xsasl/xsasl_dovecot_server.c
index 601f787..e97af30 100644
--- a/src/xsasl/xsasl_dovecot_server.c
+++ b/src/xsasl/xsasl_dovecot_server.c
@@ -542,6 +542,8 @@ static void xsasl_dovecot_parse_reply_args(XSASL_DOVECOT_SERVER *server,
myfree(server->username);
server->username = 0;
}
+ VSTRING_RESET(reply);
+ VSTRING_TERMINATE(reply);
/*
* Note: TAB is part of the Dovecot protocol and must not appear in