Browse Source

shadowsocksr-libev: fix memory exception error

Fixes: #873
W_Y_CPP 3 years ago
parent
commit
511ed0f67a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      shadowsocksr-libev/src/server/http_simple.c

+ 1 - 0
shadowsocksr-libev/src/server/http_simple.c

@@ -107,6 +107,7 @@ int get_data_from_http_header(char *data, char **outdata) {
 
 
         //p_line = strtok(p_line, delim);
         //p_line = strtok(p_line, delim);
     }
     }
+    *outdata = buf;
     return outlength;
     return outlength;
 }
 }