]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix segfault parsing digest auth realm
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 17 Jun 2011 13:05:21 +0000 (07:05 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 17 Jun 2011 13:05:21 +0000 (07:05 -0600)
Also enact a TODO about Digest::Config constructor.

src/auth/digest/auth_digest.cc

index f619160ddc5d49f5db283dff8962a855f58861c5..9be6af8858f59b031c4e2b906d8abc29d9fe15b2 100644 (file)
@@ -940,22 +940,18 @@ AuthDigestConfig::done()
     safe_free(digestAuthRealm);
 }
 
-
-AuthDigestConfig::AuthDigestConfig()
-{
-    /* TODO: move into initialisation list */
-    authenticateChildren = 5;
-    /* 5 minutes */
-    nonceGCInterval = 5 * 60;
-    /* 30 minutes */
-    noncemaxduration = 30 * 60;
-    /* 50 requests */
-    noncemaxuses = 50;
-    /* Not strict nonce count behaviour */
-    NonceStrictness = 0;
-    /* Verify nonce count */
-    CheckNonceCount = 1;
-}
+AuthDigestConfig::AuthDigestConfig() :
+        authenticateChildren(5),
+        digestAuthRealm(NULL),
+        authenticate(NULL),
+        nonceGCInterval(5*60),
+        noncemaxduration(30*60),
+        noncemaxuses(50),
+        NonceStrictness(0),
+        CheckNonceCount(1),
+        PostWorkaround(0),
+        utf8(0)
+{}
 
 void
 AuthDigestConfig::parse(AuthConfig * scheme, int n_configured, char *param_str)