Skip to content

Commit

Permalink
dmq: check if dmq socket exists
Browse files Browse the repository at this point in the history
(cherry picked from commit c6d2480)
  • Loading branch information
gaaf committed Nov 10, 2014
1 parent 9cc499e commit 2109a70
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/dmq/dmq.c
Expand Up @@ -228,6 +228,10 @@ static int mod_init(void)
LM_ERR("failed to create socket out of server_uri\n");
return -1;
}
if (lookup_local_socket(&dmq_server_socket) == NULL) {
LM_ERR("server_uri is not a socket the proxy is listening on\n");
return -1;
}

/* allocate workers array */
workers = shm_malloc(num_workers * sizeof(*workers));
Expand Down

0 comments on commit 2109a70

Please sign in to comment.