Skip to content

Commit

Permalink
core: proper check for allocation of route_locks_size
Browse files Browse the repository at this point in the history
- regression added with relocation of code

(cherry picked from commit 403de77)
  • Loading branch information
miconda committed May 13, 2019
1 parent 04a0a70 commit bdced08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/receive.c
Expand Up @@ -49,6 +49,7 @@
#include "xavp.h"
#endif
#include "select_buf.h"
#include "locking.h"

#include "tcp_server.h" /* for tcpconn_add_alias */
#include "tcp_options.h" /* for access to tcp_accept_aliases*/
Expand Down Expand Up @@ -78,7 +79,7 @@ int ksr_route_locks_set_init(void)
return 0;

ksr_route_locks_set = rec_lock_set_alloc(ksr_route_locks_size);
if(ksr_route_locks_set) {
if(ksr_route_locks_set==NULL) {
LM_ERR("failed to allocate route locks set\n");
return -1;
}
Expand Down

0 comments on commit bdced08

Please sign in to comment.