Author: jra
Date: 2007-03-21 00:56:40 +0000 (Wed, 21 Mar 2007)
New Revision: 21899

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21899

Log:
At least we're getting to stage 2 of the blob
exchange. Still not working but closer.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/libsmb/clitrans.c


Changeset:
Modified: branches/SAMBA_3_0/source/libsmb/clitrans.c
===================================================================
--- branches/SAMBA_3_0/source/libsmb/clitrans.c 2007-03-21 00:44:15 UTC (rev 
21898)
+++ branches/SAMBA_3_0/source/libsmb/clitrans.c 2007-03-21 00:56:40 UTC (rev 
21899)
@@ -194,11 +194,15 @@
         * to a trans call. This is not an error and should not
         * be treated as such. Note that STATUS_NO_MORE_FILES is
         * returned when a trans2 findfirst/next finishes.
+        * When setting up an encrypted transport we can also
+        * see NT_STATUS_MORE_PROCESSING_REQUIRED here.
         */
        status = cli_nt_error(cli);
        
-       if (NT_STATUS_IS_ERR(status) || 
NT_STATUS_EQUAL(status,STATUS_NO_MORE_FILES)) {
-               goto out;
+       if (!NT_STATUS_EQUAL(status, NT_STATUS_MORE_PROCESSING_REQUIRED)) {
+               if (NT_STATUS_IS_ERR(status) || 
NT_STATUS_EQUAL(status,STATUS_NO_MORE_FILES)) {
+                       goto out;
+               }
        }
 
        /* parse out the lengths */
@@ -303,8 +307,10 @@
                                 CVAL(cli->inbuf,smb_com)));
                        goto out;
                }
-               if (NT_STATUS_IS_ERR(cli_nt_error(cli))) {
-                       goto out;
+               if (!NT_STATUS_EQUAL(status, 
NT_STATUS_MORE_PROCESSING_REQUIRED)) {
+                       if (NT_STATUS_IS_ERR(cli_nt_error(cli))) {
+                               goto out;
+                       }
                }
 
                /* parse out the total lengths again - they can shrink! */

Reply via email to