Sfoglia il codice sorgente

fixed len to include extra '/' character

cecylia 7 anni fa
parent
commit
3e8d294c0d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      relay_station/relay.c

+ 1 - 1
relay_station/relay.c

@@ -1032,7 +1032,7 @@ int process_downstream(flow *f, int32_t offset, struct packet_info *info){
 					if(len_ptr != NULL){
 					if(len_ptr != NULL){
 						f->replace_response = 1;
 						f->replace_response = 1;
 						memcpy(len_ptr + 14, "sli/theen", 9);
 						memcpy(len_ptr + 14, "sli/theen", 9);
-						char *c = len_ptr + 14+8;
+						char *c = len_ptr + 14+9;
 						while(c[0] != '\r'){
 						while(c[0] != '\r'){
 							c[0] = ' ';
 							c[0] = ' ';
 							c++;
 							c++;