[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-2016-g3ca58b7

Jeremy Allison jra at samba.org
Fri Feb 8 18:07:32 GMT 2008


The branch, v3-2-test has been updated
       via  3ca58b792fb10ff2a4c25283c587f8270ed82d74 (commit)
      from  593768c3e98d1ac34e6f9a8b3969662e9be3b707 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 3ca58b792fb10ff2a4c25283c587f8270ed82d74
Author: Jeremy Allison <jra at samba.org>
Date:   Fri Feb 8 10:07:05 2008 -0800

    Fix bug reported on IRC enumerating shares with OS/2.
    Report and fix from kukks (thanks once again !).
    Jeremy.

-----------------------------------------------------------------------

Summary of changes:
 source/libsmb/clirap.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libsmb/clirap.c b/source/libsmb/clirap.c
index 4c5e338..8c167e1 100644
--- a/source/libsmb/clirap.c
+++ b/source/libsmb/clirap.c
@@ -191,12 +191,13 @@ int cli_RNetShareEnum(struct cli_state *cli, void (*fn)(const char *, uint32, co
 
 					sname = p;
 					type = SVAL(p,14);
-					comment_offset = IVAL(p,16) & 0xFFFF;
-					if (comment_offset < 0 || comment_offset > (int)rdrcnt) {
+					comment_offset = (IVAL(p,16) & 0xFFFF) - converter;
+					if (comment_offset < 0 ||
+							comment_offset > (int)rdrcnt) {
 						TALLOC_FREE(frame);
 						break;
 					}
-					cmnt = comment_offset?(rdata+comment_offset-converter):"";
+					cmnt = comment_offset?(rdata+comment_offset):"";
 
 					/* Work out the comment length. */
 					for (p1 = cmnt, len = 0; *p1 &&


-- 
Samba Shared Repository


More information about the samba-cvs mailing list