summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInaky Perez-Gonzalez <inaky@linux.intel.com>2008-12-10 13:48:14 -0800
committerInaky Perez-Gonzalez <inaky@linux.intel.com>2008-12-10 13:48:14 -0800
commite985850a617accbd14d7177f47a82928a7ddbb1f (patch)
treef6bae789cb00b1808f52f6ff74282325450772fc
parent396a48f75c7fb694ed136922cb1914074b1d46ea (diff)
wimaxll_gnl_handle_message_to_user: return NL_SKIP on incorrect interface index
Skip the processing of this message if it is addressed to another interface and not the one this caller cares about. Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
-rw-r--r--lib/op-msg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/op-msg.c b/lib/op-msg.c
index b6ca2b5..9faced4 100644
--- a/lib/op-msg.c
+++ b/lib/op-msg.c
@@ -191,8 +191,8 @@ int wimaxll_gnl_handle_msg_to_user(struct wimaxll_handle *wmx,
}
if (wmx->ifidx != nla_get_u32(tb[WIMAX_GNL_MSG_IFIDX])) {
- result = NL_OK;
- goto error_not_for_us;
+ result = NL_SKIP;
+ goto error_no_attrs;
}
/* Extract marshalled arguments */
if (tb[WIMAX_GNL_MSG_DATA] == NULL) {