diff options
| author | Ben Straub <bs@github.com> | 2013-02-05 13:14:48 -0800 |
|---|---|---|
| committer | Ben Straub <bs@github.com> | 2013-02-05 13:14:48 -0800 |
| commit | def60ea4731368fa3624cb6cbdc704d3dfcbc458 (patch) | |
| tree | d17e78c5f560272752ee68e0cc86c53d8084e0da /src/transports/smart_protocol.c | |
| parent | 42385c96d5b6e7382f3cf9663e9789f3c56f9d9d (diff) | |
| download | libgit2-def60ea4731368fa3624cb6cbdc704d3dfcbc458.tar.gz | |
Allow all non-zero returns to cancel transfers
Diffstat (limited to 'src/transports/smart_protocol.c')
| -rw-r--r-- | src/transports/smart_protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transports/smart_protocol.c b/src/transports/smart_protocol.c index a68d242bc..103fc1ec3 100644 --- a/src/transports/smart_protocol.c +++ b/src/transports/smart_protocol.c @@ -493,7 +493,7 @@ int git_smart__download_pack( git__free(pkt); } else if (pkt->type == GIT_PKT_DATA) { git_pkt_data *p = (git_pkt_data *) pkt; - if ((error = writepack->add(writepack, p->data, p->len, stats)) < 0) + if ((error = writepack->add(writepack, p->data, p->len, stats)) != 0) goto on_error; git__free(pkt); |
