aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/translation-table.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/batman-adv/translation-table.c')
-rw-r--r--net/batman-adv/translation-table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c
index 7f663092f6de..0dc85eb1cb7a 100644
--- a/net/batman-adv/translation-table.c
+++ b/net/batman-adv/translation-table.c
@@ -3282,7 +3282,7 @@ static bool batadv_send_my_tt_response(struct batadv_priv *bat_priv,
3282 &tvlv_tt_data, 3282 &tvlv_tt_data,
3283 &tt_change, 3283 &tt_change,
3284 &tt_len); 3284 &tt_len);
3285 if (!tt_len) 3285 if (!tt_len || !tvlv_len)
3286 goto unlock; 3286 goto unlock;
3287 3287
3288 /* Copy the last orig_node's OGM buffer */ 3288 /* Copy the last orig_node's OGM buffer */
@@ -3300,7 +3300,7 @@ static bool batadv_send_my_tt_response(struct batadv_priv *bat_priv,
3300 &tvlv_tt_data, 3300 &tvlv_tt_data,
3301 &tt_change, 3301 &tt_change,
3302 &tt_len); 3302 &tt_len);
3303 if (!tt_len) 3303 if (!tt_len || !tvlv_len)
3304 goto out; 3304 goto out;
3305 3305
3306 /* fill the rest of the tvlv with the real TT entries */ 3306 /* fill the rest of the tvlv with the real TT entries */