Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-dcerpc-samr.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 2 Dec 2002 19:20:57 -0600 (CST)
guy         2002/12/02 19:20:57 CST

  Modified files:
    .                    packet-dcerpc-samr.c 
  Log:
  Values in Microsoft protocols that don't have their byte order specified
  by DCE RPC are usually little-endian; fix a bunch of
  "proto_tree_add_item()" calls (most are for byte-array or string fields,
  so the byte order doesn't make a difference, but one is a number).
  
  Put an item into the protocol tree for the encrypted NT password block.
  
  Mallocate the buffer for the Unicode version of the password, rather
  than assuming it'll fit in 256 bytes.
  
  "g_malloc()" never returns NULL - it either allocates memory or aborts -
  so don't check for a mallocation failure.
  
  Don't try to decrypt the NT password block if we don't have a password.
  
  Revision  Changes    Path
  1.62      +63 -56    ethereal/packet-dcerpc-samr.c