summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2d8a2d2)
use the user found by nmh_get_credentials() in sm_auth_sasl().
strncpy(host, inhost, sizeof(host) - 1);
}
strncpy(host, inhost, sizeof(host) - 1);
}
- callbacks[SM_SASL_N_CB_USER].context = user;
- callbacks[SM_SASL_N_CB_AUTHNAME].context = user;
-
nmh_get_credentials (host, user, 1, &creds);
nmh_get_credentials (host, user, 1, &creds);
+ /* It's OK to copy the creds pointers here. The callbacks that
+ use them will only be called before this function returns. */
+ callbacks[SM_SASL_N_CB_USER].context = creds.user;
+ callbacks[SM_SASL_N_CB_AUTHNAME].context = creds.user;
sasl_pw_context[0] = host;
sasl_pw_context[1] = creds.user;
sasl_pw_context[2] = creds.password;
sasl_pw_context[0] = host;
sasl_pw_context[1] = creds.user;
sasl_pw_context[2] = creds.password;