commit | 465308c8246339d2dc7ee071ca46888e07a4f1f0 | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Mon May 22 14:49:10 2017 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Mon May 22 14:49:10 2017 +0200 |
tree | 388bbaa5616c2fca3ab9fa93b23fb48bf851885f | |
parent | 6799a05bded95b38b3dd2930be348d8fee7c9906 [diff] [blame] |
session CHANGE add error codes for session status and term reason enums
diff --git a/src/session.c b/src/session.c index ffc4fe6..ae14060 100644 --- a/src/session.c +++ b/src/session.c
@@ -286,7 +286,7 @@ { if (!session) { ERRARG("session"); - return 0; + return NC_STATUS_ERR; } return session->status; @@ -297,7 +297,7 @@ { if (!session) { ERRARG("session"); - return 0; + return NC_SESSION_TERM_ERR; } return session->term_reason;