forked from pool/libgcrypt
44e7a5642f
Fixed a few bugs. Enjoy! OBS-URL: https://build.opensuse.org/request/show/697283 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libgcrypt?expand=0&rev=124
16 lines
393 B
Diff
16 lines
393 B
Diff
Index: libgcrypt-1.8.4/src/fips.c
|
|
===================================================================
|
|
--- libgcrypt-1.8.4.orig/src/fips.c
|
|
+++ libgcrypt-1.8.4/src/fips.c
|
|
@@ -930,6 +930,10 @@ fips_new_state (enum module_states new_s
|
|
|
|
}
|
|
|
|
+ /* Allow a transition to the current state */
|
|
+ if (current_state == new_state)
|
|
+ ok = 1;
|
|
+
|
|
if (ok)
|
|
{
|
|
current_state = new_state;
|