[SCM] Samba Shared Repository - branch master updated

Jeremy Allison jra at samba.org
Tue Feb 9 13:18:06 MST 2010


The branch, master has been updated
       via  9ad6f43... Fix off-by-one error in working out the limit of the NetServerEnum comment.
      from  bc8242a... s3:smbd: use StrCaseCmp() instead of strcasecmp

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 9ad6f432f3f5844b4b419e7cbaf3c3e70b052d29
Author: Jeremy Allison <jra at samba.org>
Date:   Tue Feb 9 12:17:08 2010 -0800

    Fix off-by-one error in working out the limit of the NetServerEnum comment.
    
    Jeremy.

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

Summary of changes:
 source3/libsmb/clirap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libsmb/clirap.c b/source3/libsmb/clirap.c
index 7f6dbf5..990b806 100644
--- a/source3/libsmb/clirap.c
+++ b/source3/libsmb/clirap.c
@@ -367,7 +367,7 @@ bool cli_NetServerEnum(struct cli_state *cli, char *workgroup, uint32 stype,
 				comment_offset = (IVAL(p,22) & 0xFFFF)-converter;
 				cmnt = comment_offset?(rdata+comment_offset):"";
 
-				if (comment_offset < 0 || comment_offset > (int)rdrcnt) {
+				if (comment_offset < 0 || comment_offset >= (int)rdrcnt) {
 					TALLOC_FREE(frame);
 					continue;
 				}


-- 
Samba Shared Repository


More information about the samba-cvs mailing list