]> git.ozlabs.org Git - ppp.git/commitdiff
Closes #411, Fixing up parsing in radiusclient.conf
authorEivind Naess <eivnaes@yahoo.com>
Sun, 23 Apr 2023 18:37:01 +0000 (11:37 -0700)
committerEivind Naess <eivnaes@yahoo.com>
Sun, 23 Apr 2023 18:37:01 +0000 (11:37 -0700)
Adding curly braces to fix the code.

Signed-off-by: Eivind Naess <eivnaes@yahoo.com>
pppd/plugins/radius/config.c

index 39744fca12f04730a4e69f9e8f293f258b63162e..e1a4814873488945c0f60febb660996005f37464 100644 (file)
@@ -235,24 +235,28 @@ int rc_read_config(char *filename)
 
                switch (option->type) {
                        case OT_STR:
-                                if (set_option_str(filename, line, option, p) < 0)
+                               if (set_option_str(filename, line, option, p) < 0) {
                                        fclose(configfd);
                                        return (-1);
+                               }
                                break;
                        case OT_INT:
-                                if (set_option_int(filename, line, option, p) < 0)
+                               if (set_option_int(filename, line, option, p) < 0) {
                                        fclose(configfd);
                                        return (-1);
+                               }
                                break;
                        case OT_SRV:
-                                if (set_option_srv(filename, line, option, p) < 0)
+                               if (set_option_srv(filename, line, option, p) < 0) {
                                        fclose(configfd);
                                        return (-1);
+                               }
                                break;
                        case OT_AUO:
-                                if (set_option_auo(filename, line, option, p) < 0)
+                               if (set_option_auo(filename, line, option, p) < 0) {
                                        fclose(configfd);
                                        return (-1);
+                               }
                                break;
                        default:
                                fatal("rc_read_config: impossible case branch!");