projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2098650
)
This should be STAT
author
Art Cancro
<ajc@uncensored.citadel.org>
Tue, 11 Feb 2014 14:59:09 +0000
(09:59 -0500)
committer
Art Cancro
<ajc@uncensored.citadel.org>
Tue, 11 Feb 2014 14:59:09 +0000
(09:59 -0500)
citadel/modules/nntp/serv_nntp.c
patch
|
blob
|
history
diff --git
a/citadel/modules/nntp/serv_nntp.c
b/citadel/modules/nntp/serv_nntp.c
index 0970e68b43f1624060a33a90f32c48fcbb75bc38..495771d59c797d14d5731e2d551c58f3fd257194 100644
(file)
--- a/
citadel/modules/nntp/serv_nntp.c
+++ b/
citadel/modules/nntp/serv_nntp.c
@@
-721,7
+721,8
@@
void nntp_article(const char *cmd) {
// Which NNTP command was issued, determines whether we will fetch headers, body, or both.
int headers_only = HEADERS_ALL;
if (acmd == HEAD) headers_only = HEADERS_FAST;
// Which NNTP command was issued, determines whether we will fetch headers, body, or both.
int headers_only = HEADERS_ALL;
if (acmd == HEAD) headers_only = HEADERS_FAST;
- if (acmd == BODY) headers_only = HEADERS_NONE;
+ else if (acmd == BODY) headers_only = HEADERS_NONE;
+ else if (acmd == STAT) headers_only = HEADERS_FAST;
// now figure out what the client is asking for.
char requested_article[256];
// now figure out what the client is asking for.
char requested_article[256];
@@
-790,8
+791,9
@@
void nntp_article(const char *cmd) {
cprintf("222 %ld <FIXME@FIXME>\r\n", requested_msgnum);
}
if (acmd == STAT) {
cprintf("222 %ld <FIXME@FIXME>\r\n", requested_msgnum);
}
if (acmd == STAT) {
- // crash FIXME
cprintf("223 %ld <FIXME@FIXME>\r\n", requested_msgnum);
cprintf("223 %ld <FIXME@FIXME>\r\n", requested_msgnum);
+ FreeStrBuf(&msgtext);
+ return;
}
client_write(SKEY(msgtext));
}
client_write(SKEY(msgtext));