projects
/
cyrus-sasl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup, put backreference to SASL plug in library
[cyrus-sasl.git]
/
lib
/
client.c
diff --git
a/lib/client.c
b/lib/client.c
index
9fdcf46
..
91c2e2d
100644
(file)
--- a/
lib/client.c
+++ b/
lib/client.c
@@
-652,6
+652,7
@@
int sasl_client_step(sasl_conn_t *conn,
if(clientoutlen) *clientoutlen = 0;
/* do a step */
if(clientoutlen) *clientoutlen = 0;
/* do a step */
+ c_conn->cparams->plug = c_conn->mech->m.plug;
result = c_conn->mech->m.plug->mech_step(conn->context,
c_conn->cparams,
serverin,
result = c_conn->mech->m.plug->mech_step(conn->context,
c_conn->cparams,
serverin,
@@
-660,6
+661,7
@@
int sasl_client_step(sasl_conn_t *conn,
clientout, clientoutlen,
&conn->oparams);
clientout, clientoutlen,
&conn->oparams);
+ c_conn->cparams->plug = NULL;
if (result == SASL_OK) {
/* So we're done on this end, but if both
* 1. the mech does server-send-last
if (result == SASL_OK) {
/* So we're done on this end, but if both
* 1. the mech does server-send-last