Skip to content

Commit

Permalink
usrloc: if no location record loaded from db, then no attrs to look up
Browse files Browse the repository at this point in the history
(cherry picked from commit bedd6f4)
(cherry picked from commit b667c76)
  • Loading branch information
miconda committed Jun 29, 2016
1 parent 6a9d4f5 commit a10acb9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/usrloc/udomain.c
Expand Up @@ -676,6 +676,8 @@ urecord_t* db_load_urecord(db1_con_t* _c, udomain_t* _d, str *_aor)
goto done;
}

if(r==0) goto done;

for (c = r->contacts; c != NULL; c = c->next) {
vals[0].val.str_val.s = c->ruid.s;
vals[0].val.str_val.len = c->ruid.len;
Expand Down

0 comments on commit a10acb9

Please sign in to comment.