From e8c21056134498c49733f6baf572ffbb051ed886 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Fri, 7 Jul 2017 11:23:47 +0100 Subject: Make sure error_message is a free-able string Similar to the previous commit, assigning a static string would crash upon freeing. Signed-off-by: Eric Engestrom Acked-by: Walter Harms Reviewed-by: Emil Velikov --- src/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/process.c b/src/process.c index 9efc81b..9cd744b 100644 --- a/src/process.c +++ b/src/process.c @@ -1797,7 +1797,7 @@ ProcessConnectionReply ( errorReply->type = ICE_CONNECTION_ERROR; errorReply->error_message = - "Received bad version index in Connection Reply"; + strdup("Received bad version index in Connection Reply"); } else { @@ -2300,7 +2300,7 @@ ProcessProtocolReply ( errorReply->type = ICE_PROTOCOL_ERROR; errorReply->error_message = - "Received bad version index in Protocol Reply"; + strdup("Received bad version index in Protocol Reply"); } else { -- cgit v1.2.3