When metadata is at newer version than the highest supported, return
EOPNOTSUPP when decoding. MFC after: 3 days
This commit is contained in:
parent
79e6fcac83
commit
e880ff0062
@ -308,7 +308,7 @@ eli_metadata_decode(const u_char *data, struct g_eli_metadata *md)
|
||||
error = eli_metadata_decode_v1v2v3v4v5v6(data, md);
|
||||
break;
|
||||
default:
|
||||
error = EINVAL;
|
||||
error = EOPNOTSUPP;
|
||||
break;
|
||||
}
|
||||
return (error);
|
||||
|
Loading…
Reference in New Issue
Block a user