Commit ebdfcad4dc2a6851f75fac0a3315046cbd9c4410

Authored by Vlad Yasevich
Committed by David S. Miller
1 parent 16d807988f

[SCTP]: Set correct error cause value for missing parameters

sctp_process_missing_param() needs to use the SCTP_ERROR_MISS_PARAM
error cause value.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

net/sctp/sm_make_chunk.c
... ... @@ -1562,7 +1562,7 @@
1562 1562 if (*errp) {
1563 1563 report.num_missing = htonl(1);
1564 1564 report.type = paramtype;
1565   - sctp_init_cause(*errp, SCTP_ERROR_INV_PARAM,
  1565 + sctp_init_cause(*errp, SCTP_ERROR_MISS_PARAM,
1566 1566 &report, sizeof(report));
1567 1567 }
1568 1568