Ignore:
Timestamp:
Jul 2, 2011, 4:01:14 PM (14 years ago)
Author:
Herwig Bauernfeind
Message:

Samba 3.5: Update vendor to version 3.5.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/lib/util.c

    r594 r597  
    13131313                                        strlen(user_name), &nis_result,
    13141314                                        &nis_result_len)) == 0) {
     1315                if (nis_result_len > 0 && nis_result[nis_result_len] == '\n') {
     1316                        nis_result[nis_result_len] = '\0';
     1317                }
    13151318                value = talloc_strdup(ctx, nis_result);
    13161319                if (!value) {
     
    19982001int str_checksum(const char *s)
    19992002{
    2000         int res = 0;
    2001         int c;
    2002         int i=0;
    2003 
    2004         while(*s) {
    2005                 c = *s;
    2006                 res ^= (c << (i % 15)) ^ (c >> (15-(i%15)));
    2007                 s++;
    2008                 i++;
    2009         }
    2010         return(res);
     2003        TDB_DATA key = string_tdb_data(s);
     2004        return jenkins_hash(&key);
    20112005}
    20122006
Note: See TracChangeset for help on using the changeset viewer.