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
  • Loading branch information
miconda committed Mar 26, 2016
1 parent 3a25e48 commit bedd6f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/usrloc/udomain.c
Expand Up @@ -697,6 +697,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 bedd6f4

Please sign in to comment.