Module: sems Branch: master Commit: c7e50c045484df9ec41f2ea82606f14ac96b4140 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=c7e50c045484df9ec41f2ea82606f14ac96b4140
Author: Raphael Coeffic <[email protected]> Committer: Raphael Coeffic <[email protected]> Date: Wed Mar 6 17:16:14 2013 +0100 b/f: sbc: reg-cache: str2long returns false on error --- apps/sbc/RegisterCache.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/apps/sbc/RegisterCache.cpp b/apps/sbc/RegisterCache.cpp index c09e2ef..1b7acb9 100644 --- a/apps/sbc/RegisterCache.cpp +++ b/apps/sbc/RegisterCache.cpp @@ -675,7 +675,7 @@ bool _RegisterCache::throttleRegister(RegisterCacheCtx& ctx, contact_it->params["expires"] = long2str(contact_expires); } else { - if(str2long(expires_it->second,contact_expires)) { + if(!str2long(expires_it->second,contact_expires)) { AmBasicSipDialog::reply_error(req, 400, "Bad Request", "Warning: Malformed expires\r\n"); return true; // error reply sent _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
