Skip to content

Commit

Permalink
lib-storage: mail_user_dup() should duplicate also userdb_fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Oct 13, 2016
1 parent c943681 commit de72596
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib-storage/mail-user.c
Expand Up @@ -546,6 +546,8 @@ struct mail_user *mail_user_dup(struct mail_user *user)
user2->auth_token = p_strdup(user2->pool, user->auth_token);
user2->auth_user = p_strdup(user2->pool, user->auth_user);
user2->session_id = p_strdup(user2->pool, user->session_id);
user2->userdb_fields = user->userdb_fields == NULL ? NULL :
p_strarray_dup(user2->pool, user->userdb_fields);
return user2;
}

Expand Down

0 comments on commit de72596

Please sign in to comment.