Skip to content
Snippets Groups Projects
Commit 63fb81df authored by Michael Tüxen's avatar Michael Tüxen
Browse files

Use correct flags for checking parts of generic parameters.

This was a copy and paste error.
parent ffa7fbaa
No related branches found
No related tags found
No related merge requests found
...@@ -1061,11 +1061,11 @@ sctp_generic_parameter_new(s64 type, s64 len, struct sctp_byte_list *bytes) ...@@ -1061,11 +1061,11 @@ sctp_generic_parameter_new(s64 type, s64 len, struct sctp_byte_list *bytes)
flags = 0; flags = 0;
if (bytes == NULL) { if (bytes == NULL) {
flags |= FLAG_CHUNK_VALUE_NOCHECK; flags |= FLAG_PARAMETER_VALUE_NOCHECK;
} }
if (len == -1) { if (len == -1) {
parameter_length = (u16)sizeof(struct sctp_chunk); parameter_length = (u16)sizeof(struct sctp_chunk);
flags |= FLAG_CHUNK_LENGTH_NOCHECK; flags |= FLAG_PARAMETER_LENGTH_NOCHECK;
} else { } else {
parameter_length = (u16)len; parameter_length = (u16)len;
} }
...@@ -1078,7 +1078,7 @@ sctp_generic_parameter_new(s64 type, s64 len, struct sctp_byte_list *bytes) ...@@ -1078,7 +1078,7 @@ sctp_generic_parameter_new(s64 type, s64 len, struct sctp_byte_list *bytes)
assert(parameter != NULL); assert(parameter != NULL);
if (type == -1) { if (type == -1) {
parameter->type = 0; parameter->type = 0;
flags |= FLAG_CHUNK_TYPE_NOCHECK; flags |= FLAG_PARAMETER_TYPE_NOCHECK;
} else { } else {
parameter->type = htons((u16)type); parameter->type = htons((u16)type);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment