Changeset 597 for vendor/current/source3/lib/util.c
- Timestamp:
- Jul 2, 2011, 4:01:14 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/lib/util.c
r594 r597 1313 1313 strlen(user_name), &nis_result, 1314 1314 &nis_result_len)) == 0) { 1315 if (nis_result_len > 0 && nis_result[nis_result_len] == '\n') { 1316 nis_result[nis_result_len] = '\0'; 1317 } 1315 1318 value = talloc_strdup(ctx, nis_result); 1316 1319 if (!value) { … … 1998 2001 int str_checksum(const char *s) 1999 2002 { 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); 2011 2005 } 2012 2006
Note:
See TracChangeset
for help on using the changeset viewer.