Module: sip-router Branch: master Commit: 2429ddf4afe45fc72a11c9cc53c8f8efbad36f1e URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2429ddf4...
Author: root root@boyce.voipuser.org Committer: root root@boyce.voipuser.org Date: Sat Oct 2 20:56:11 2010 +0100
dialog: fix setting the name of route in dlg structure
---
modules_k/dialog/dlg_hash.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules_k/dialog/dlg_hash.c b/modules_k/dialog/dlg_hash.c index 2e94731..3ec22a4 100644 --- a/modules_k/dialog/dlg_hash.c +++ b/modules_k/dialog/dlg_hash.c @@ -775,7 +775,7 @@ int dlg_set_toroute(struct dlg_cell *dlg, str *route) dlg->toroute_name.len = 0; } dlg->toroute_name.s = (char*)shm_malloc((route->len+1)*sizeof(char)); - if(dlg->toroute_name.s!=NULL) { + if(dlg->toroute_name.s==NULL) { LM_ERR("no more shared memory\n"); return -1; }