Update 104-pointer-used-after-free.patch
This commit is contained in:
parent
079d8c9ebc
commit
401e337dad
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue