Author: jra
Date: 2004-09-03 20:30:09 +0000 (Fri, 03 Sep 2004)
New Revision: 2218

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/trunk/source/smbd&rev=2218&nolog=1

Log:
Remember to count bad_components only on pathname boundaries.
Jeremy.

Modified:
   trunk/source/smbd/reply.c


Changeset:
Modified: trunk/source/smbd/reply.c
===================================================================
--- trunk/source/smbd/reply.c   2004-09-03 20:06:27 UTC (rev 2217)
+++ trunk/source/smbd/reply.c   2004-09-03 20:30:09 UTC (rev 2218)
@@ -149,10 +149,10 @@
                                        return NT_STATUS_INVALID_PARAMETER;
                        }
                }
-               start_of_name_component = False;
-               if (num_bad_components) {
+               if (start_of_name_component && num_bad_components) {
                        num_bad_components++;
                }
+               start_of_name_component = False;
        }
 
        if (NT_STATUS_EQUAL(ret, NT_STATUS_OBJECT_NAME_INVALID)) {

Reply via email to