Browse Source

smb_ntlm: fix warnings

Signed-off-by: Julien 'Lta' BALLET <contact@lta.io>
Jean-Baptiste Kempf 11 years ago
parent
commit
1b0774ff85
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/smb_ntlm.c

+ 1 - 1
src/smb_ntlm.c

@@ -44,7 +44,7 @@ uint64_t    smb_ntlm_generate_challenge()
     // Get random data from uninitialized memory, and 'random' memory address
     memory = malloc(sizeof(uint64_t));
 
-    result = random() + (random() << 32) + (uint64_t)memory **memory;
+    result = (uint64_t)random() + ((uint64_t)random() << 32) + (uint64_t)memory **memory;
 
     return (result);
 }