"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/auth/userdb-dict.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.

userdb-dict.c  (dovecot-2.3.16):userdb-dict.c  (dovecot-2.3.17)
skipping to change at line 121 skipping to change at line 121
auth_request, NULL, &error) <= 0) { auth_request, NULL, &error) <= 0) {
e_error(authdb_event(auth_request), e_error(authdb_event(auth_request),
"Failed to expand iterate_prefix=%s: %s", "Failed to expand iterate_prefix=%s: %s",
module->conn->set.iterate_prefix, error); module->conn->set.iterate_prefix, error);
ctx->ctx.failed = TRUE; ctx->ctx.failed = TRUE;
return &ctx->ctx; return &ctx->ctx;
} }
ctx->key_prefix = p_strdup(auth_request->pool, str_c(path)); ctx->key_prefix = p_strdup(auth_request->pool, str_c(path));
ctx->key_prefix_len = strlen(ctx->key_prefix); ctx->key_prefix_len = strlen(ctx->key_prefix);
ctx->iter = dict_iterate_init(module->conn->dict, ctx->key_prefix, 0); struct dict_op_settings set = {
.username = auth_request->fields.user,
};
ctx->iter = dict_iterate_init(module->conn->dict, &set, ctx->key_prefix,
0);
e_debug(authdb_event(auth_request), e_debug(authdb_event(auth_request),
"iterate: prefix=%s", ctx->key_prefix); "iterate: prefix=%s", ctx->key_prefix);
return &ctx->ctx; return &ctx->ctx;
} }
static const char * static const char *
userdb_dict_get_user(struct dict_userdb_iterate_context *ctx, const char *key) userdb_dict_get_user(struct dict_userdb_iterate_context *ctx, const char *key)
{ {
i_assert(strncmp(key, ctx->key_prefix, ctx->key_prefix_len) == 0); i_assert(strncmp(key, ctx->key_prefix, ctx->key_prefix_len) == 0);
 End of changes. 1 change blocks. 
1 lines changed or deleted 5 lines changed or added

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