See ChangeLog: Mon Nov 15 21:36:02 CET 1999 Werner Koch
[gnupg.git] / cipher / md.c
index bb179b6..480954a 100644 (file)
@@ -326,7 +326,7 @@ md_enable( GCRY_MD_HD hd, int algo )
                                               - sizeof(r->context) )
                  : g10_malloc( sizeof *ac + r->contextsize
                                               - sizeof(r->context) );
-    if( !rc )
+    if( !ac )
        return set_lasterr( GCRYERR_NO_MEM );
 
     *ac = *r;