From 90a554dc6989d0fcb6f85201b3d38d45dd99c740 Mon Sep 17 00:00:00 2001 From: Christian Spielberger Date: Wed, 18 Dec 2024 08:25:46 +0100 Subject: [PATCH] bevent: avoid override err --- src/bevent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bevent.c b/src/bevent.c index b1e370ab2..1bd09ec87 100644 --- a/src/bevent.c +++ b/src/bevent.c @@ -507,7 +507,7 @@ int odict_encode_bevent(struct odict *od, struct bevent *event) err = odict_pl_add(od, "contact", &hdr->val); if (pl_isset(&msg->from.dname)) - err = odict_pl_add(od, "display", &msg->from.dname); + err |= odict_pl_add(od, "display", &msg->from.dname); err |= re_sdprintf(&buf, "%H", uri_encode, &msg->from.uri); err |= odict_entry_add(od, "from", ODICT_STRING, buf);