Skip to content

Commit

Permalink
Add storage failure reason of missing newsgroups
Browse files Browse the repository at this point in the history
The reason of the error of an empty Newsgroups header field was not
set (contrary to all the other reasons).
  • Loading branch information
Julien-Elie committed Nov 2, 2023
1 parent 6e07649 commit 5f3b357
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion storage/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -632,8 +632,10 @@ SMgetsub(const ARTHANDLE article)
return NULL;
}

if (article.groups == NULL)
if (article.groups == NULL) {
SMseterror(SMERR_NOMATCH, "empty Newsgroups header field");
return NULL;
}

for (sub = subscriptions; sub != NULL; sub = sub->next) {
if (!(method_data[typetoindex[sub->type]].initialized == INIT_FAIL)
Expand Down

0 comments on commit 5f3b357

Please sign in to comment.