Skip to content

Commit

Permalink
ims_usrloc_pcscf: fix value array size and compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Apr 23, 2020
1 parent b9b177c commit 1292e40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/modules/ims_usrloc_pcscf/pcontact.c
Expand Up @@ -123,8 +123,9 @@ void free_security(security_t* _p)
return;
}

if(_p->sec_header.s)
if(_p->sec_header.s) {
shm_free(_p->sec_header.s);
}

switch (_p->type)
{
Expand All @@ -144,8 +145,9 @@ void free_security(security_t* _p)
break;

case SECURITY_TLS:
if(_p->data.tls)
if(_p->data.tls) {
shm_free(_p->data.tls);
}
break;

case SECURITY_NONE:
Expand Down
2 changes: 1 addition & 1 deletion src/modules/ims_usrloc_pcscf/usrloc_db.c
Expand Up @@ -213,7 +213,7 @@ int db_update_pcontact(pcontact_t* _c)
int db_delete_pcontact(pcontact_t* _c)
{
LM_DBG("Trying to delete contact: aor[%.*s], received port %u\n", _c->aor.len, _c->aor.s, _c->received_port);
db_val_t values[1];
db_val_t values[2];
db_key_t match_keys[2] = { &aor_col, &received_port_col };

VAL_TYPE(values) = DB1_STR;
Expand Down

0 comments on commit 1292e40

Please sign in to comment.