]> the.earth.li Git - onak.git/commitdiff
Fix stupid sock_dir bug
authorJonathan McDowell <noodles@earth.li>
Tue, 25 Aug 2015 15:46:30 +0000 (16:46 +0100)
committerJonathan McDowell <noodles@earth.li>
Tue, 25 Aug 2015 15:47:15 +0000 (16:47 +0100)
I forgot to actually parse the sock_dir info from the config file. Do
so.

onak-conf.c

index 02ccf2db8f4aa34e85e29217a196b397193892e6..763bdb203de12b60bd88b3818b75bd76c66672aa 100644 (file)
@@ -201,6 +201,8 @@ void readconfig(const char *configfile) {
                } else if (!strncmp("use_keyd ", curline, 9)) {
                        config.use_keyd = parsebool(&curline[9],
                                                config.use_keyd);
+               } else if (!strncmp("sock_dir ", curline, 9)) {
+                       config.sock_dir = strdup(&curline[9]);
                } else if (!strncmp("check_sighash ", curline, 9)) {
                        config.check_sighash = parsebool(&curline[9],
                                                config.check_sighash);