]> granicus.if.org Git - curl/commitdiff
ntlm: error out without 64bit support as the code needs it
authorDaniel Stenberg <daniel@haxx.se>
Fri, 9 Oct 2015 21:51:54 +0000 (23:51 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 9 Oct 2015 21:51:54 +0000 (23:51 +0200)
It makes it a clearer message for developers reaching that point without
the necessary support.

Thanks-by: Jay Satiro
Closes #78

lib/curl_ntlm_core.c

index aa976e72de7548ffaa9758776f64566d94fe9b08..38ce8055162d88b8ae895e6a2734e3046a3e478c 100644 (file)
@@ -668,6 +668,10 @@ CURLcode Curl_ntlm_core_mk_ntlmv2_resp(unsigned char *ntlmv2hash,
 
   CURLcode result = CURLE_OK;
 
+#if CURL_SIZEOF_CURL_OFF_T < 8
+#error "this section needs 64bit support to work"
+#endif
+
   /* Calculate the timestamp */
 #ifdef DEBUGBUILD
   char *force_timestamp = getenv("CURL_FORCETIME");