]> saetta.ns0.it Git - zakauthe/plugins/smbldap/commitdiff
Specified missing argument in log message.
authorAndrea Zagli <azagli@libero.it>
Mon, 4 Dec 2017 15:42:44 +0000 (16:42 +0100)
committerAndrea Zagli <azagli@libero.it>
Mon, 4 Dec 2017 15:42:44 +0000 (16:42 +0100)
src/aute_smbldap.c

index 664508c6daa14e0b44124da4baf1b3bbdf51fc1f..12fa4f9f73c3ad5da66d27d033f1a63970bf058a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010-2016 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2010-2017 Andrea Zagli <azagli@libero.it>
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -466,13 +466,29 @@ static gchar
                                }
                }
 
-       if (host == NULL
-               || base_dn == NULL
-               || users_ou == NULL
-               || groups_ou == NULL
-               || user_field == NULL)
+       if (host == NULL)
+               {
+                       g_warning ("Missing host parameter.");
+                       return NULL;
+               }
+       if (base_dn == NULL)
+               {
+                       g_warning ("Missing base_dn parameter.");
+                       return NULL;
+               }
+       if (users_ou == NULL)
+               {
+                       g_warning ("Missing users_ou parameter.");
+                       return NULL;
+               }
+       if (groups_ou == NULL)
+               {
+                       g_warning ("Missing groups_ou parameter.");
+                       return NULL;
+               }
+       if (user_field == NULL)
                {
-                       g_warning ("Missing some parameters.");
+                       g_warning ("Missing user_field parameter.");
                        return NULL;
                }