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 |