Wireshark-bugs: [Wireshark-bugs] [Bug 3465] packet-dcm, better error reporting, spelling
Date: Tue, 19 May 2009 02:33:13 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3465


Jaap Keuter <jaap.keuter@xxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #4 from Jaap Keuter <jaap.keuter@xxxxxxxxx>  2009-05-19 02:33:11 PDT ---
Thanks for testing. 
We'll need to patch trunk-1.0 separately, like so:

 static dcmState_t *
 mkds(void)
 {
     dcmState_t *ds;

-    if (NULL == (ds = (dcmState_t *) g_malloc(sizeof(dcmState_t)))) {
+    if (NULL == (ds = (dcmState_t *) se_alloc0(sizeof(dcmState_t)))) {
         return NULL;
     }
-    ds->pdu = 0;
-    ds->tlen = ds->rlen = 0;
     ds->valid = TRUE;
-    memset(ds->orig, 0, sizeof(ds->orig));
-    memset(ds->targ, 0, sizeof(ds->targ));
-    memset(ds->resp, 0, sizeof(ds->resp));
      ds->first = ds->last = NULL;
     return ds;
 }


-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.