diff options
Diffstat (limited to 'src/plugins')
| -rw-r--r-- | src/plugins/preauth/otp/otp_state.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/preauth/otp/otp_state.c b/src/plugins/preauth/otp/otp_state.c index 4643dff9a..7deb462d6 100644 --- a/src/plugins/preauth/otp/otp_state.c +++ b/src/plugins/preauth/otp/otp_state.c @@ -401,6 +401,8 @@ decode_config_json(const char *config, k5_json_array *out) /* Decode the config string and make sure it's an array. */ retval = k5_json_decode((config != NULL) ? config : "[{}]", &val); + if (retval != 0) + goto error; if (k5_json_get_tid(val) != K5_JSON_TID_ARRAY) { retval = EINVAL; goto error; |
