Static analyzer bug fixes
[silc.git] / lib / silchttp / silchttpserver.c
index e83d2f379b274f1106774bbc754ecb98ecf8482d..20b2c0416f527c1b5918479df1324625cb679ae4 100644 (file)
@@ -181,6 +181,9 @@ static SilcBool silc_http_server_parse(SilcHttpServer httpd,
   if (value && !strcasecmp(value, "close"))
     conn->keepalive = FALSE;
 
+  if (!conn->method)
+    return FALSE;
+
   /* Deliver request to caller */
   if (!strcasecmp(conn->method, "GET") || !strcasecmp(conn->method, "HEAD")) {
     httpd->callback(httpd, conn, conn->uri, conn->method,