diff options
author | Jeremy Allison <jra@samba.org> | 2012-05-23 22:22:17 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2012-11-01 09:10:36 +0100 |
commit | d68a305aa286d4c68ab8482624735e03c71d2697 (patch) | |
tree | f715aa04af125f6e1243db98841e7a32bacd8e53 /source3/lib/util_str.c | |
parent | 228cdfb2ccdbe36cb3bb559f2f847f59f084ae96 (diff) | |
download | samba-d68a305aa286d4c68ab8482624735e03c71d2697.tar.gz |
Fix bug #7781 (Samba transforms "ShareName" to lowercase when adding new share via MMC)
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 157b88da4db727eafa682c7fc7eab11d5955f57b)
Diffstat (limited to 'source3/lib/util_str.c')
-rw-r--r-- | source3/lib/util_str.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c index d86963702e0..17a4a8f2c4e 100644 --- a/source3/lib/util_str.c +++ b/source3/lib/util_str.c @@ -2301,6 +2301,10 @@ bool validate_net_name( const char *name, { int i; + if (!name) { + return false; + } + for ( i=0; i<max_len && name[i]; i++ ) { /* fail if strchr_m() finds one of the invalid characters */ if ( name[i] && strchr_m( invalid_chars, name[i] ) ) { |