diff options
-rw-r--r-- | net/wireless/nl80211.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 283f1a890dad..c951eb2b07d5 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -3385,6 +3385,8 @@ static int nl80211_crypto_settings(struct genl_info *info, | |||
3385 | struct cfg80211_crypto_settings *settings, | 3385 | struct cfg80211_crypto_settings *settings, |
3386 | int cipher_limit) | 3386 | int cipher_limit) |
3387 | { | 3387 | { |
3388 | memset(settings, 0, sizeof(*settings)); | ||
3389 | |||
3388 | settings->control_port = info->attrs[NL80211_ATTR_CONTROL_PORT]; | 3390 | settings->control_port = info->attrs[NL80211_ATTR_CONTROL_PORT]; |
3389 | 3391 | ||
3390 | if (info->attrs[NL80211_ATTR_CIPHER_SUITES_PAIRWISE]) { | 3392 | if (info->attrs[NL80211_ATTR_CIPHER_SUITES_PAIRWISE]) { |