gcrypt: Always initialize result pointer.
[paraslash.git] / afs.c
diff --git a/afs.c b/afs.c
index cc3fc020370821ff028a2543c354dab4acc08039..016329841fe87255cdc68c1191e8661124c1c326 100644 (file)
--- a/afs.c
+++ b/afs.c
@@ -649,7 +649,7 @@ static int setup_command_socket_or_die(void)
        ret = create_local_socket(socket_name, 0);
        if (ret < 0) {
                ret = create_local_socket(socket_name,
-                       S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IWOTH);
+                       S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IROTH);
                if (ret < 0) {
                        PARA_EMERG_LOG("%s: %s\n", para_strerror(-ret),
                                socket_name);