httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ic...@apache.org
Subject svn commit: r1728098 - /httpd/test/mod_h2/trunk/mh2fuzz/h2c_conn.c
Date Tue, 02 Feb 2016 12:26:14 GMT
Author: icing
Date: Tue Feb  2 12:26:14 2016
New Revision: 1728098

URL: http://svn.apache.org/viewvc?rev=1728098&view=rev
Log:
setting nul fuzzer in conn allowed

Modified:
    httpd/test/mod_h2/trunk/mh2fuzz/h2c_conn.c

Modified: httpd/test/mod_h2/trunk/mh2fuzz/h2c_conn.c
URL: http://svn.apache.org/viewvc/httpd/test/mod_h2/trunk/mh2fuzz/h2c_conn.c?rev=1728098&r1=1728097&r2=1728098&view=diff
==============================================================================
--- httpd/test/mod_h2/trunk/mh2fuzz/h2c_conn.c (original)
+++ httpd/test/mod_h2/trunk/mh2fuzz/h2c_conn.c Tue Feb  2 12:26:14 2016
@@ -430,14 +430,16 @@ static h2c_conn_obs *obs_setup(h2c_conn
 
 void h2c_conn_obs_set(h2c_conn *c, h2c_conn_obs *obs)
 {    
-    h2c_conn_obs *tail = c->obs? c->obs : NULL;
-    c->obs = obs_setup(c, obs);
-    if (tail) {
-        h2c_conn_obs **pnext = &c->obs;
-        while (*pnext) {
-            pnext = &((*pnext)->next);
+    h2c_conn_obs *tail = c->obs;
+    if (obs) {
+        c->obs = obs_setup(c, obs);
+        if (tail) {
+            h2c_conn_obs **pnext = &c->obs;
+            while (*pnext) {
+                pnext = &((*pnext)->next);
+            }
+            *pnext = tail;
         }
-        *pnext = tail;
     }
 }
 



Mime
View raw message