diff options
author | Jeremy Allison <jra@samba.org> | 2012-08-08 12:06:34 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-08-09 09:47:35 -0700 |
commit | 8605b35e8824bf30633d47333df3720f9ff4dbaa (patch) | |
tree | 5595ae34decceb3e83b733e3168dfb9597c7791c /source3 | |
parent | f64c970e3e70632e9721f8d4993c68b3841bbfa5 (diff) | |
download | samba-8605b35e8824bf30633d47333df3720f9ff4dbaa.tar.gz samba-8605b35e8824bf30633d47333df3720f9ff4dbaa.tar.bz2 samba-8605b35e8824bf30633d47333df3720f9ff4dbaa.zip |
Fix bad return values in unix_strlower/unix_strupper.
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/util_str.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c index bfa6652543..55e4b3f5ff 100644 --- a/source3/lib/util_str.c +++ b/source3/lib/util_str.c @@ -418,7 +418,7 @@ static bool unix_strlower(const char *src, size_t srclen, char *dest, size_t des } if (!strlower_w(buffer) && (dest == src)) { TALLOC_FREE(buffer); - return srclen; + return true; } ret = convert_string(CH_UTF16LE, CH_UNIX, buffer, size, dest, destlen, &size); TALLOC_FREE(buffer); @@ -502,7 +502,7 @@ static bool unix_strupper(const char *src, size_t srclen, char *dest, size_t des if (!strupper_w(buffer) && (dest == src)) { TALLOC_FREE(buffer); - return srclen; + return true; } ret = convert_string(CH_UTF16LE, CH_UNIX, buffer, size, dest, destlen, &size); |