summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/session.c b/session.c
index 4d794df..cec97cf 100644
--- a/session.c
+++ b/session.c
@@ -48,7 +48,6 @@ SRD_PRIV int max_session_id = -1;
/** @private */
SRD_PRIV int session_is_valid(struct srd_session *sess)
{
-
if (!sess || sess->session_id < 1)
return SRD_ERR;
@@ -70,7 +69,6 @@ SRD_PRIV int session_is_valid(struct srd_session *sess)
*/
SRD_API int srd_session_new(struct srd_session **sess)
{
-
if (!sess) {
srd_err("Invalid session pointer.");
return SRD_ERR_ARG;
@@ -333,6 +331,7 @@ SRD_API int srd_session_terminate_reset(struct srd_session *sess)
if (ret != SRD_OK)
return ret;
}
+
return SRD_OK;
}