فهرست منبع

dialog: fix setting the name of route in dlg structure

root 15 سال پیش
والد
کامیت
2429ddf4af
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      modules_k/dialog/dlg_hash.c

+ 1 - 1
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;
 	}