]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - netconn.c
fix use of r_main_texturepool (it's a pointer, but this file imported it
[xonotic/darkplaces.git] / netconn.c
index 93199c116a7a8b7319200cb0c9a7b1372c78867e..ce3f0913b2f210274861bec2142ae09c8312e51e 100755 (executable)
--- a/netconn.c
+++ b/netconn.c
@@ -2192,7 +2192,9 @@ qboolean hmac_mdfour_matching(const char *password, const char *hash, const char
        if(abs(t1 - t2) > rcon_secure_maxdiff.integer)
                return false;
 
-       HMAC_MDFOUR_16BYTES((unsigned char *) mdfourbuf, (unsigned char *) s, slen, (unsigned char *) password, strlen(password));
+       if(!HMAC_MDFOUR_16BYTES((unsigned char *) mdfourbuf, (unsigned char *) s, slen, (unsigned char *) password, strlen(password)))
+               return false;
+
        return !memcmp(mdfourbuf, hash, 16);
 }