Diff between 5dcc52a486f27867bdb685a39e10fadc9e6afa6f and 1707a836223093de92f7911ca703ba9fa99e44b4

Changed Files

File Additions Deletions Status
lib/sdp.c +5 -0 modified

Full Patch

diff --git a/lib/sdp.c b/lib/sdp.c
index b87951b..b64245f 100644
--- a/lib/sdp.c
+++ b/lib/sdp.c
@@ -1538,6 +1538,11 @@ static sdp_data_t *sdp_copy_seq(sdp_data_t *data)
 		value = sdp_data_value(tmp, &len);
 		datatmp = sdp_data_alloc_with_length(tmp->dtd, value, len);
 
+		if (!datatmp) {
+			sdp_data_free(seq);
+			return NULL;
+		}
+
 		if (cur)
 			cur->next = datatmp;
 		else