[OpenSIPS-Devel] [OpenSIPS/opensips] e64006: time_rec.c: Remove superflous checks

Liviu Chircu noreply at github.com
Fri Oct 30 22:16:03 EST 2020


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: e64006eec06f8d34eed27cdec6f28f76ed29eb38
      https://github.com/OpenSIPS/opensips/commit/e64006eec06f8d34eed27cdec6f28f76ed29eb38
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-10-30 (Fri, 30 Oct 2020)

  Changed paths:
    M time_rec.c

  Log Message:
  -----------
  time_rec.c: Remove superflous checks


  Commit: 4942bfca4dc481a84af2e2a8c78c55dcdd962679
      https://github.com/OpenSIPS/opensips/commit/4942bfca4dc481a84af2e2a8c78c55dcdd962679
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-10-31 (Sat, 31 Oct 2020)

  Changed paths:
    M modules/cfgutils/test/cfgutils.c
    M time_rec.c
    M time_rec.h

  Log Message:
  -----------
  RFC 5445 time rec:  Fix several "byxxx" bugs

* fix incorrect quick-exit returning always "true" even though there are
    "byxxx" rules within the recurrence which restrict the matching
* BYMONTH, BYWEEKNO, BYYEARDAY:
    - accept 1-indexed input instead of 0-indexed (per RFC 5445)
* BYDAY:
    - fix off-by-one bugs and inaccurate logic


Compare: https://github.com/OpenSIPS/opensips/compare/6f4165f18297...4942bfca4dc4



More information about the Devel mailing list