From 8ad4ccb85025e0bd3423e19cb57ca23991439858 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Mon, 28 Jan 2013 21:08:14 +0000 Subject: Allow SNMP user table entry to be re-editted even if engineID/Username remains the same. Bug 2426 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2426) svn path=/trunk/; revision=47328 --- epan/dissectors/packet-snmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors') diff --git a/epan/dissectors/packet-snmp.c b/epan/dissectors/packet-snmp.c index d036d33ac3..3556271ef5 100644 --- a/epan/dissectors/packet-snmp.c +++ b/epan/dissectors/packet-snmp.c @@ -3247,7 +3247,7 @@ snmp_users_update_cb(void* p _U_, const char** err) if ( u->user.userName.len == ue->user.userName.len - && u->engine.len == ue->engine.len ) { + && u->engine.len == ue->engine.len && (u != ue)) { if (u->engine.len > 0 && memcmp( u->engine.data, ue->engine.data, u->engine.len ) == 0) { if ( memcmp( u->user.userName.data, ue->user.userName.data, ue->user.userName.len ) == 0 ) { -- cgit v1.2.3