summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--squark-auth-snmp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/squark-auth-snmp.c b/squark-auth-snmp.c
index d72c958..b425e70 100644
--- a/squark-auth-snmp.c
+++ b/squark-auth-snmp.c
@@ -325,6 +325,8 @@ static void switch_info_free(struct switch_info *si)
safe_free(&si->system_location);
safe_free(&si->system_version);
safe_free(&si->system_oid.ptr);
+ si->info_available = 0;
+ si->flags = 0;
}
struct switch_info *get_switch(sockaddr_any *addr)