Permalink
Browse files

Fixed a mistake in the previous commit ced4656.

The test should cover the case when  MaxSessions is zero or negative.
  • Loading branch information...
1 parent 2e1f844 commit 13166260be569da64d408ebccad56b70a01d8f2e @dtacalau dtacalau committed Oct 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 sipXpark/src/main.cpp
View
@@ -374,9 +374,9 @@ int main(int argc, char* argv[])
}
/*
* If a value <=0 was given to MaxSessions then the default value will be used because
- * it make no sense to have "0" active sessions.
+ * it make no sense to have "0" or negative sessions.
*/
- if (0 <= MaxSessions)
+ if (0 >= MaxSessions)
{
MaxSessions = DEFAULT_MAX_SESSIONS;
}

0 comments on commit 1316626

Please sign in to comment.