Return after returning an error
[cascardo/atompub.git] / frontend / cgi / cgi.c
index 7b8ac55..1209ceb 100644 (file)
@@ -40,6 +40,7 @@ cgi_serve_request (AtomCtx *ctx)
            * from a non-existent index.
            */
           fprintf (stdout, "Status: 404 Not Found\n\n");
+          return;
         }
     }
   if (!strcmp (method, "GET"))