diff --git a/src/tests/ffi-key-sig.cpp b/src/tests/ffi-key-sig.cpp index cae983f0c..a97d2fd12 100644 --- a/src/tests/ffi-key-sig.cpp +++ b/src/tests/ffi-key-sig.cpp @@ -903,6 +903,8 @@ TEST_F(rnp_tests, test_ffi_sig_validity) assert_rnp_success(rnp_signature_get_expiration(sig, &expires)); assert_int_equal(expires, 86400); uint32_t features = 0; + assert_rnp_failure(rnp_signature_get_features(NULL, &features)); + assert_rnp_failure(rnp_signature_get_features(sig, NULL)); assert_rnp_success(rnp_signature_get_features(sig, &features)); assert_int_equal(features, 0); rnp_signature_handle_destroy(sig);