From 64b41b5b0a3f974292f12eb2fbde47d66d6455e2 Mon Sep 17 00:00:00 2001 From: Liviu Chircu Date: Thu, 16 Nov 2023 00:45:59 +0200 Subject: [PATCH] dialog: Fix bad test in prev commit --- modules/dialog/dlg_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/dialog/dlg_hash.c b/modules/dialog/dlg_hash.c index 13136390209..a90a10bf4a0 100644 --- a/modules/dialog/dlg_hash.c +++ b/modules/dialog/dlg_hash.c @@ -1509,7 +1509,7 @@ static inline int internal_mi_print_dlg(mi_item_t *dialog_obj, for( dv=dlg->vals ; dv ; dv=dv->next) { if (dv->type == DLG_VAL_TYPE_STR) { /* escape non-printable chars */ - if (!pkg_str_extend(&dlg_val_buf, 4 * dv->val.s.len + 1)) { + if (pkg_str_extend(&dlg_val_buf, 4 * dv->val.s.len + 1) != 0) { LM_ERR("not enough mem to allocate: %d\n", 4 * dv->val.s.len + 1); continue; }