summaryrefslogtreecommitdiff
path: root/src/process.c
diff options
context:
space:
mode:
authorEric Engestrom <eric.engestrom@imgtec.com>2017-07-07 11:23:47 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2017-09-07 13:52:24 +0100
commite8c21056134498c49733f6baf572ffbb051ed886 (patch)
treecaa9314bbd3acf0f904f1852d1a03c04e59d5329 /src/process.c
parent7a7844bf5ade915268fe7f9b292908c6cd75f3ba (diff)
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 <eric.engestrom@imgtec.com> Acked-by: Walter Harms <wharms@bfs.de> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c4
1 files 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
{