Minor fix
* libmu_dbm/dbm.c (mu_dbm_create_from_url): Fix owner= parameter.
Showing
1 changed file
with
7 additions
and
6 deletions
... | @@ -190,7 +190,12 @@ mu_dbm_create_from_url (mu_url_t url, mu_dbm_file_t *db) | ... | @@ -190,7 +190,12 @@ mu_dbm_create_from_url (mu_url_t url, mu_dbm_file_t *db) |
190 | if (name[5] == '=') | 190 | if (name[5] == '=') |
191 | { | 191 | { |
192 | auth = mu_get_auth_by_name (name + 6); | 192 | auth = mu_get_auth_by_name (name + 6); |
193 | if (!auth) | 193 | if (auth) |
194 | { | ||
195 | owner_uid = auth->uid; | ||
196 | mu_auth_data_free (auth); | ||
197 | } | ||
198 | else | ||
194 | { | 199 | { |
195 | char *end; | 200 | char *end; |
196 | unsigned long uid; | 201 | unsigned long uid; |
... | @@ -199,11 +204,7 @@ mu_dbm_create_from_url (mu_url_t url, mu_dbm_file_t *db) | ... | @@ -199,11 +204,7 @@ mu_dbm_create_from_url (mu_url_t url, mu_dbm_file_t *db) |
199 | uid = strtoul (name + 6, &end, 0); | 204 | uid = strtoul (name + 6, &end, 0); |
200 | if (*end || errno) | 205 | if (*end || errno) |
201 | return MU_ERR_NO_SUCH_USER; | 206 | return MU_ERR_NO_SUCH_USER; |
202 | auth = mu_get_auth_by_uid (uid); | 207 | owner_uid = uid; |
203 | if (!auth) | ||
204 | return MU_ERR_NO_SUCH_USER; | ||
205 | owner_uid = auth->uid; | ||
206 | mu_auth_data_free (auth); | ||
207 | } | 208 | } |
208 | } | 209 | } |
209 | else if (name[5]) | 210 | else if (name[5]) | ... | ... |
-
Please register or sign in to post a comment