summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/session.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/session.rs b/src/session.rs
index d7f3aaa..e3566d1 100644
--- a/src/session.rs
+++ b/src/session.rs
@@ -604,7 +604,7 @@ impl Session {
/// Translate a return code into a Rust-`Result`.
pub fn rc(&self, rc: c_int) -> Result<(), Error> {
- if rc == 0 {
+ if rc >= 0 {
Ok(())
} else {
match Error::last_error(self) {