Modify backend to use new auth cookie format
[blerg.git] / database / subscription.c
index aac7acf..c1633fe 100644 (file)
@@ -88,12 +88,12 @@ struct blergref * subscription_list(const char *author, uint64_t offset, int *co
        int feed_fd = open(filename, O_RDONLY);
        if (feed_fd == -1) {
                perror("Could not open subscription feed");
-               goto subscription_list_map_failed;
+               goto subscription_list_open_failed;
        }
 
        fstat(feed_fd, &st);
        if (st.st_size == 0) {
-               close(feed_fd);
+               fprintf(stderr, "Feed is empty\n");
                goto subscription_list_map_failed;
        }
        n_subscription_records = st.st_size / sizeof(struct blergref);