chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eclient now passes NULL for 555 responses rather than calling the
[disorder]
/
lib
/
eclient.c
diff --git
a/lib/eclient.c
b/lib/eclient.c
index 4f1355804ca499c43d5340ea8f900c945c6b4775..78f94bde4cb599781dcfa35ccdecd4d7a701b87b 100644
(file)
--- a/
lib/eclient.c
+++ b/
lib/eclient.c
@@
-841,9
+841,11
@@
static void stash_command(disorder_eclient *c,
static void string_response_opcallback(disorder_eclient *c,
struct operation *op) {
D(("string_response_callback"));
static void string_response_opcallback(disorder_eclient *c,
struct operation *op) {
D(("string_response_callback"));
- if(c->rc / 100 == 2) {
+ if(c->rc / 100 == 2
|| c->rc == 555
) {
if(op->completed) {
if(op->completed) {
- if(c->protocol >= 2) {
+ if(c->rc == 555)
+ ((disorder_eclient_string_response *)op->completed)(op->v, NULL);
+ else if(c->protocol >= 2) {
char **rr = split(c->line + 4, 0, SPLIT_QUOTES, 0, 0);
if(rr && *rr)
char **rr = split(c->line + 4, 0, SPLIT_QUOTES, 0, 0);
if(rr && *rr)