* temporary solution to our ser_readln migration: have a buffer on the session, read...
[citadel.git] / webcit / webcit.c
index 31d5197b6a8934b0498fd1bd9d180495bda4bd94..dcef892e63f61d50ca48e42036c09b7f512ecf78 100644 (file)
@@ -805,7 +805,7 @@ void session_loop(HashList *HTTPHeaders,
        }
 
        /* If the client sent a nonce that is incorrect, kill the request. */
-       if (strlen(bstr("nonce")) > 0) {
+       if (havebstr("nonce")) {
                lprintf(9, "Comparing supplied nonce %s to session nonce %ld\n", 
                        bstr("nonce"), WCC->nonce);
                if (ibstr("nonce") != WCC->nonce) {