]> arthur.barton.de Git - netatalk.git/commitdiff
Ignore dsi header data offset field in request, bug from Derrik Pates.
authordidg <didg>
Mon, 12 Sep 2005 16:10:19 +0000 (16:10 +0000)
committerdidg <didg>
Mon, 12 Sep 2005 16:10:19 +0000 (16:10 +0000)
libatalk/dsi/dsi_getstat.c
libatalk/dsi/dsi_opensess.c

index 3bbec554a623338f297a178a61d39a2d4f70bf2e..f6f0ff5ab9bc39df71ccf1070cab3bc4f5dc4913 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: dsi_getstat.c,v 1.3 2001-06-29 14:14:46 rufustfirefly Exp $
+ * $Id: dsi_getstat.c,v 1.3.16.1 2005-09-12 16:10:19 didg Exp $
  *
  * Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
  * All rights reserved. See COPYRIGHT.
@@ -21,6 +21,7 @@ void dsi_getstatus(DSI *dsi)
 {
   dsi->header.dsi_flags = DSIFL_REPLY;
   /*dsi->header.dsi_command = DSIFUNC_STAT;*/
+  dsi->header.dsi_code = dsi->header.dsi_reserved = 0;
   
   memcpy(dsi->commands, dsi->status, dsi->statuslen);
   dsi->cmdlen = dsi->statuslen; 
index dfc6f2e421a09cf9e441a9a17eb1919dfa61f365..6ecfb86188e0493f9ec35c3b28af4097ce9c7e38 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: dsi_opensess.c,v 1.3 2001-06-29 14:14:46 rufustfirefly Exp $
+ * $Id: dsi_opensess.c,v 1.3.16.1 2005-09-12 16:10:20 didg Exp $
  *
  * Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
  * All rights reserved. See COPYRIGHT.
@@ -37,6 +37,7 @@ void dsi_opensession(DSI *dsi)
   /* let the client know the server quantum. we don't use the
    * max server quantum due to a bug in appleshare client 3.8.6. */
   dsi->header.dsi_flags = DSIFL_REPLY;
+  dsi->header.dsi_code = 0;
   /* dsi->header.dsi_command = DSIFUNC_OPEN;*/
   dsi->cmdlen = 2 + sizeof(i); /* length of data. dsi_send uses it. */
   dsi->commands[0] = DSIOPT_SERVQUANT;