aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
diff options
context:
space:
mode:
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2009-03-13 22:21:22 +0000
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2009-03-13 22:21:22 +0000
commitf3a2b11b8d68ca0f75269e0851fa36f1d1fe9dbb (patch)
tree5fa314a8f356089956554ab984dc40862013e32e /epan/dissectors
parentfe45df06ecc42c95c5492467fc77445d35da9806 (diff)
g_free() is NULL safe, so we don't need check against it.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27719 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/packet-pres.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/epan/dissectors/packet-pres.c b/epan/dissectors/packet-pres.c
index d14f5fdd8f..56b90ce17d 100644
--- a/epan/dissectors/packet-pres.c
+++ b/epan/dissectors/packet-pres.c
@@ -312,6 +312,7 @@ pres_copy_cb(void *dest, const void *orig, unsigned len _U_)
pres_user_t *u = dest;
const pres_user_t *o = orig;
+ u->ctx_id = o->ctx_id;
u->oid = g_strdup(o->oid);
return dest;
@@ -322,7 +323,7 @@ pres_free_cb(void *r)
{
pres_user_t *u = r;
- if (u->oid) g_free(u->oid);
+ g_free(u->oid);
}
static gboolean
@@ -1322,7 +1323,7 @@ dissect_pres_RSA_PPDU(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _
/*--- End of included file: packet-pres-fn.c ---*/
-#line 221 "packet-pres-template.c"
+#line 222 "packet-pres-template.c"
/*
@@ -1785,7 +1786,7 @@ void proto_register_pres(void) {
"", HFILL }},
/*--- End of included file: packet-pres-hfarr.c ---*/
-#line 375 "packet-pres-template.c"
+#line 376 "packet-pres-template.c"
};
/* List of subtrees */
@@ -1831,7 +1832,7 @@ void proto_register_pres(void) {
&ett_pres_User_session_requirements,
/*--- End of included file: packet-pres-ettarr.c ---*/
-#line 381 "packet-pres-template.c"
+#line 382 "packet-pres-template.c"
};
static uat_field_t users_flds[] = {