Update 104-pointer-used-after-free.patch

This commit is contained in:
lededev 2023-11-04 08:19:26 +08:00
parent 079d8c9ebc
commit 401e337dad
1 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
diff -ur a/server/server.c b/server/server.c
--- a/server/server.c
+++ b/server/server.c
@@ -1942,12 +1942,12 @@
diff -ur a/server/server.c b/server/server.c
--- a/server/server.c
+++ b/server/server.c
@@ -1942,12 +1942,12 @@
text = (char*)malloc(strlen(protocol) - 11);
memcpy(text, protocol, strlen(protocol) - 11);
int length = strlen(protocol) - 11;
@ -14,4 +14,4 @@ diff -ur a/server/server.c b/server/server.c
+ free(protocol);
protocol_compatible = 1;
}
}
}