checksum: Fix cr_checksum_type for sha checksum.
authorTomas Mlcoch <tmlcoch@redhat.com>
Mon, 10 Jun 2013 12:49:28 +0000 (14:49 +0200)
committerTomas Mlcoch <tmlcoch@redhat.com>
Mon, 10 Jun 2013 12:49:28 +0000 (14:49 +0200)
src/checksum.c

index 2431230..cbef9ec 100644 (file)
@@ -62,7 +62,7 @@ cr_checksum_type(const char *name)
         // SHA* family
         char *sha_type = name_lower + 3;
         if (!strcmp(sha_type, ""))
-            return CR_CHECKSUM_SHA1;
+            return CR_CHECKSUM_SHA;
         else if (!strcmp(sha_type, "1"))
             return CR_CHECKSUM_SHA1;
         else if (!strcmp(sha_type, "224"))