When metadata is at newer version than the highest supported, return

EOPNOTSUPP when decoding.

MFC after:	3 days
This commit is contained in:
Pawel Jakub Dawidek 2011-10-25 07:48:53 +00:00
parent 79e6fcac83
commit e880ff0062

View File

@ -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);