Commit 861c50bf authored by Alexey Krasikov's avatar Alexey Krasikov Committed by Daniel P. Berrangé
Browse files

crypto/secret: fix inconsequential errors.



Change condition from QCRYPTO_SECRET_FORMAT_RAW
to QCRYPTO_SECRET_FORMAT_BASE64 in if-operator, because
this is potential error if you add another format value.

Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: default avatarAlexey Krasikov <alex-krasikov@yandex-team.ru>
Signed-off-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
parent 569644f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -204,7 +204,7 @@ qcrypto_secret_prop_set_loaded(Object *obj,
            input = output;
            inputlen = outputlen;
        } else {
            if (secret->format != QCRYPTO_SECRET_FORMAT_RAW) {
            if (secret->format == QCRYPTO_SECRET_FORMAT_BASE64) {
                qcrypto_secret_decode(input, inputlen,
                                      &output, &outputlen, &local_err);
                g_free(input);