Fix op_http_parse_connection().
authorTimothy B. Terriberry <tterribe@xiph.org>
Sat, 20 Oct 2012 16:14:21 +0000 (09:14 -0700)
committerTimothy B. Terriberry <tterribe@xiph.org>
Sat, 20 Oct 2012 16:14:21 +0000 (09:14 -0700)
We were computing the return value correctly, but then not
 returning it.

src/http.c

index a2c164e..5c98ec1 100644 (file)
@@ -1270,7 +1270,7 @@ static int op_http_parse_connection(char *_cdr){
     if(d<=0)break;
     _cdr+=d;
   }
-  return OP_UNLIKELY(*_cdr!='\0')?OP_FALSE:0;
+  return OP_UNLIKELY(*_cdr!='\0')?OP_FALSE:ret;
 }
 
 typedef int (*op_ssl_step_func)(SSL *_ssl_conn);