diff options
author | Volker Lendecke <vl@samba.org> | 2012-04-12 12:15:50 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-04-12 21:49:32 +0200 |
commit | 6742aa1fb62bdb70ee5e89d243b4058ba6b5e73a (patch) | |
tree | f64043b355d03a8ee0a05a1d1c7a4a5a9b7de036 | |
parent | bcc16f191175740f200c12925b63d45478f06454 (diff) | |
download | samba-6742aa1fb62bdb70ee5e89d243b4058ba6b5e73a.tar.gz samba-6742aa1fb62bdb70ee5e89d243b4058ba6b5e73a.tar.bz2 samba-6742aa1fb62bdb70ee5e89d243b4058ba6b5e73a.zip |
s3: Fix a segfault with debug level 3 on Solaris
printf can not deal with NULL strings
-rw-r--r-- | source3/smbd/password.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c index 39cde15aaf..2a76d830b5 100644 --- a/source3/smbd/password.c +++ b/source3/smbd/password.c @@ -286,7 +286,8 @@ int register_existing_vuid(struct smbd_server_connection *sconn, DEBUG(3, ("register_existing_vuid: User name: %s\t" "Real name: %s\n", vuser->session_info->unix_info->unix_name, - vuser->session_info->info->full_name)); + vuser->session_info->info->full_name ? + vuser->session_info->info->full_name : "")); if (!vuser->session_info->security_token) { DEBUG(1, ("register_existing_vuid: session_info does not " |