From 19aceecc176b6d79429c4edfa111fd816ae10940 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 3 Dec 2024 14:55:39 -0400 Subject: [PATCH] MT#55283 use more appropriate helper function The string might not be null terminated. Change-Id: I09d64d69202c8ce7196b8d39223d785353fbd4eb --- daemon/redis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/redis.c b/daemon/redis.c index b34664e15..7797bd49e 100644 --- a/daemon/redis.c +++ b/daemon/redis.c @@ -2111,7 +2111,7 @@ static void json_restore_call(struct redis *r, const str *callid, bool foreign) redis_hash_get_time_t(&c->deleted, &call, "deleted"); redis_hash_get_time_t(&c->ml_deleted, &call, "ml_deleted"); if (!redis_hash_get_str(&id, &call, "created_from")) - c->created_from = call_strdup(id.s); + c->created_from = call_strdup_str(&id); if (!redis_hash_get_str(&id, &call, "created_from_addr")) { if (sockaddr_parse_any_str(&c->created_from_addr, &id)) goto err8;