commit - 4f152e84c01e22799218a449a85a105ff94fdf9d
commit + 01392bd60410ca454e46653c8a740008e84545ef
blob - 5213b41bf3ead6134a9406eeefc91ebc07fbb000
blob + f590fbeec3d166b03a21d728cd7b310503675b34
--- gotwebd/got_operations.c
+++ gotwebd/got_operations.c
for (i = 0; i < nentries; i++) {
te = got_object_tree_get_entry(tree, i);
- if (cb(c->tp, te) == -1)
+ if (cb(c->tp, te) == -1) {
+ error = got_error(GOT_ERR_CANCELLED);
break;
+ }
}
done:
free(escaped_name);
if (err || linelen == -1)
break;
lineno++;
- if (cb(tp, line, lineno) == -1)
+ if (cb(tp, line, lineno) == -1) {
+ err = got_error(GOT_ERR_CANCELLED);
break;
+ }
}
free(line);