* check whether we need the serv_info before loading it.
authorWilfried Göesgens <willi@citadel.org>
Thu, 12 Feb 2009 21:59:18 +0000 (21:59 +0000)
committerWilfried Göesgens <willi@citadel.org>
Thu, 12 Feb 2009 21:59:18 +0000 (21:59 +0000)
webcit/webcit.c

index 1aa8ae12b9da426eb1151bccd5dae14898e7cbcb..1974b2e1e117c1902a4eeda0d040f0291a774757 100644 (file)
@@ -828,8 +828,8 @@ void session_loop(HashList *HTTPHeaders, StrBuf *ReqLine, StrBuf *request_method
                                }
                                locate_host(browser_host, WCC->http_sock);
                        }
-
-                       WCC->serv_info = get_serv_info(browser_host, user_agent);
+                       if (WCC->serv_info == NULL)
+                               WCC->serv_info = get_serv_info(browser_host, user_agent);
                        if (WCC->serv_info->serv_rev_level < MINIMUM_CIT_VERSION) {
                                begin_burst();
                                wprintf(_("You are connected to a Citadel "