diff options
Diffstat (limited to 'source3/lib/privileges_basic.c')
-rw-r--r-- | source3/lib/privileges_basic.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/privileges_basic.c b/source3/lib/privileges_basic.c index ea566c71eb..753f7265a1 100644 --- a/source3/lib/privileges_basic.c +++ b/source3/lib/privileges_basic.c @@ -317,6 +317,10 @@ const char* get_privilege_dispname( const char *name ) { int i; + if (!name) { + return NULL; + } + for ( i=0; !se_priv_equal(&privs[i].se_priv, &se_priv_end); i++ ) { if ( strequal( privs[i].name, name ) ) { |