]> git.sur5r.net Git - openldap/commitdiff
Back out probable fix to strange alignment code
authorHallvard Furuseth <hallvard@openldap.org>
Tue, 17 Nov 1998 17:44:50 +0000 (17:44 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Tue, 17 Nov 1998 17:44:50 +0000 (17:44 +0000)
libraries/liblutil/sha1.c

index d254b3fcda8f1e76ae5e9d58b5a85a677235361a..5095bd77e3e6941b5fe2addfeea303d24102cc26 100644 (file)
@@ -68,8 +68,8 @@ ldap_SHA1Transform( uint32 *state, const unsigned char *buffer )
     CHAR64LONG16 *block;
 
 #ifdef SHA1HANDSOFF
-    CHAR64LONG16 workspace;
-    block = &workspace;
+    static unsigned char workspace[64];
+    block = (CHAR64LONG16 *)workspace;
     (void)memcpy(block, buffer, 64);
 #else
     block = (CHAR64LONG16 *)buffer;