]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r5125: Fix bug 2113 -- thanks to jason@ncac.gwu.edu
authorVolker Lendecke <vlendec@samba.org>
Mon, 31 Jan 2005 08:29:51 +0000 (08:29 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:55:28 +0000 (10:55 -0500)
source/rpc_parse/parse_lsa.c

index c4ff240cef8c47317df166d3bc4778bf900bf239..e38197ddba16eae02365a08588cc12f87704e54e 100644 (file)
@@ -214,16 +214,12 @@ static void init_lsa_obj_attr(LSA_OBJ_ATTR *attr, uint32 attributes, LSA_SEC_QOS
 static BOOL lsa_io_obj_attr(const char *desc, LSA_OBJ_ATTR *attr, prs_struct *ps, 
                            int depth)
 {
-       uint32 start;
-
        prs_debug(ps, depth, desc, "lsa_io_obj_attr");
        depth++;
 
        if(!prs_align(ps))
                return False;
        
-       start = prs_offset(ps);
-
        /* these pointers had _better_ be zero, because we don't know
           what they point to!
         */
@@ -240,15 +236,6 @@ static BOOL lsa_io_obj_attr(const char *desc, LSA_OBJ_ATTR *attr, prs_struct *ps
        if(!prs_uint32("ptr_sec_qos ", ps, depth, &attr->ptr_sec_qos )) /* security quality of service (pointer) */
                return False;
 
-       /* code commented out as it's not necessary true (tested with hyena). JFM, 11/22/2001 */
-#if 0
-       if (attr->len != prs_offset(ps) - start) {
-               DEBUG(3,("lsa_io_obj_attr: length %x does not match size %x\n",
-                        attr->len, prs_offset(ps) - start));
-               return False;
-       }
-#endif
-
        if (attr->ptr_sec_qos != 0) {
                if (UNMARSHALLING(ps))
                        if (!(attr->sec_qos = PRS_ALLOC_MEM(ps,LSA_SEC_QOS,1)))