diff options
| author | Aymeric Moizard <amoizard@gmail.com> | 2014-04-22 10:17:33 +0200 |
|---|---|---|
| committer | Aymeric Moizard <amoizard@gmail.com> | 2014-04-22 10:17:33 +0200 |
| commit | bfea0a27dff7c6a766d2b886c068d317ce3e2eb6 (patch) | |
| tree | d31bc88baef3e535407b246ba0a66adfbc2e6db3 | |
| parent | 7b38ab55873f9ae4126c0d284a6a6a7d9b246e27 (diff) | |
| download | exosip-bfea0a27dff7c6a766d2b886c068d317ce3e2eb6.tar.gz | |
update static IDs (cid/did/rid/pid) to use range from 0 to INT_MAX to avoid possible collision
| -rw-r--r-- | src/eXosip.c | 2 | ||||
| -rw-r--r-- | src/jpublish.c | 2 | ||||
| -rw-r--r-- | src/jreg.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/eXosip.c b/src/eXosip.c index dc17b03..2fcdf18 100644 --- a/src/eXosip.c +++ b/src/eXosip.c @@ -1072,7 +1072,7 @@ _eXosip_update (struct eXosip_t *excontext) #endif eXosip_dialog_t *jd; - if (static_id == 32767) + if (static_id == INT_MAX) static_id = 1; /* loop */ for (jc = excontext->j_calls; jc != NULL; jc = jc->next) { diff --git a/src/jpublish.c b/src/jpublish.c index 748276b..43beaa2 100644 --- a/src/jpublish.c +++ b/src/jpublish.c @@ -102,7 +102,7 @@ _eXosip_pub_init (eXosip_pub_t ** pub, const char *aor, const char *exp) static int p_id = 0; eXosip_pub_t *jpub; - if (p_id == 32767) /* keep it non-negative */ + if (p_id == INT_MAX) /* keep it non-negative */ p_id = 0; *pub = NULL; @@ -52,7 +52,7 @@ _eXosip_reg_init (struct eXosip_t *excontext, eXosip_reg_t ** jr, const char *fr if (*jr == NULL) return OSIP_NOMEM; - if (r_id == 32767) /* keep it non-negative */ + if (r_id == INT_MAX) /* keep it non-negative */ r_id = 0; memset (*jr, '\0', sizeof (eXosip_reg_t)); |
