We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a969582 commit 61ab302Copy full SHA for 61ab302
src/core/n-crypt.c
@@ -828,6 +828,7 @@ static uECC_Curve get_ecc_curve(REBCNT curve_type) {
828
ctx_ser = VAL_HANDLE_DATA(val_ctx);
829
if (VAL_HANDLE_TYPE(val_ctx) != SYM_CHACHA20 || ctx_ser == NULL || SERIES_TAIL(ctx_ser) != sizeof(chacha20_ctx)){
830
Trap0(RE_INVALID_HANDLE);
831
+ return R_NONE; // avoid wornings later
832
}
833
834
@@ -852,6 +853,7 @@ static uECC_Curve get_ecc_curve(REBCNT curve_type) {
852
853
854
855
856
+ return R_NONE;
857
858
859
len = VAL_LEN(val_data);
0 commit comments