summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libsmb/libsmb_context.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/source3/libsmb/libsmb_context.c b/source3/libsmb/libsmb_context.c
index 0683f97ddd..e4df7fcb08 100644
--- a/source3/libsmb/libsmb_context.c
+++ b/source3/libsmb/libsmb_context.c
@@ -655,15 +655,17 @@ smbc_set_credentials(char *workgroup,
void smbc_set_credentials_with_fallback(SMBCCTX *context,
char *workgroup,
- char *user,
- char *password)
+ char *user,
+ char *password)
{
smbc_bool use_kerberos = false;
const char *signing_state = "off";
- if (!context || !workgroup || !*workgroup
- || !user || !*user || !password
- || !*password) {
+ if (! context ||
+ ! workgroup || ! *workgroup ||
+ ! user || ! *user ||
+ ! password || ! *password) {
+
return;
}