[OpenSIPS-Devel] typo in dlg_handlers.c

Richard Revels rrevels at bandwidth.com
Thu Mar 31 20:34:09 CEST 2011


I've got a couple hundred unread messages in my mailing list folder.  Please forgive me if this has been fixed already.  This is from revision 7602.

I'm getting a seg fault in str2int called from dlg_validate_dialog and noticed this right when I started looking at the core file

1256            n = m = 0;                                                                                                                                                                                                                                               │
  >│1257            if ( str2int( &((get_cseq(req))->number), &n)!=0 ||                                                                                                                                                                                                      │
   │1258            str2int( &(leg->r_cseq), &n)!=0 || n<=m ) {                                                                                                                                                                                                              │
   │1259                    LM_DBG("cseq test falied recv=%d, old=%d\n",n,m);                                                                                                                                                                                                │
   │1260                    return -1;                                                                                                                                                                                                                                       │
   │1261            } 

It seems like one of the &n values in the calls to str2int should be an &m to me.  At the moment I don't think this has anything to do with the crash.  I'll open a tracker on that when I find it.

Richard




More information about the Devel mailing list