"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lib-sasl/dsasl-client.c" between
dovecot-2.3.16.tar.gz and dovecot-2.3.17.tar.gz

About: Dovecot is an IMAP and POP3 server, written with security primarily in mind.

dsasl-client.c  (dovecot-2.3.16):dsasl-client.c  (dovecot-2.3.17)
skipping to change at line 81 skipping to change at line 81
} }
void dsasl_client_free(struct dsasl_client **_client) void dsasl_client_free(struct dsasl_client **_client)
{ {
struct dsasl_client *client = *_client; struct dsasl_client *client = *_client;
*_client = NULL; *_client = NULL;
if (client->mech->free != NULL) if (client->mech->free != NULL)
client->mech->free(client); client->mech->free(client);
safe_memset(client->password, 0, strlen(client->password)); if (client->password != NULL)
safe_memset(client->password, 0, strlen(client->password));
pool_unref(&client->pool); pool_unref(&client->pool);
} }
int dsasl_client_input(struct dsasl_client *client, int dsasl_client_input(struct dsasl_client *client,
const unsigned char *input, size_t input_len, const unsigned char *input, size_t input_len,
const char **error_r) const char **error_r)
{ {
if ((client->mech->flags & DSASL_MECH_SEC_ALLOW_NULS) == 0 && if ((client->mech->flags & DSASL_MECH_SEC_ALLOW_NULS) == 0 &&
memchr(input, '\0', input_len) != NULL) { memchr(input, '\0', input_len) != NULL) {
*error_r = "Unexpected NUL in input data"; *error_r = "Unexpected NUL in input data";
 End of changes. 1 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)