<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 12/07/2011 06:45 PM, Bruno Bresciani wrote:
    <blockquote
cite="mid:CAKv6MrZOGAmrhQHYZkZHceCzGz4w4meNWULmLchK9mn+xczD3Q@mail.gmail.com"
      type="cite">this line is present in a module that i am writting,
      but on modules_k/pua_bla/notify.c line 205 has a similar
      condition...<br>
      <br>
      Cheers<br>
      <br>
    </blockquote>
    607af7c7 (Henning Westerholt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2008-08-07 08:39:24 +0000
    203)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(msg-&gt;contact== NULL || msg-&gt;contact-&gt;body.s==
    NULL)<br>
    <br>
    As you can see, it test if it _is_ NULL (==) not different (!=).<br>
    <br>
    Marius<br>
    <br>
    <blockquote
cite="mid:CAKv6MrZOGAmrhQHYZkZHceCzGz4w4meNWULmLchK9mn+xczD3Q@mail.gmail.com"
      type="cite"><br>
      <div class="gmail_quote">2011/12/7 marius zbihlei <span dir="ltr">&lt;<a
            moz-do-not-send="true" href="mailto:marius.zbihlei@1and1.ro">marius.zbihlei@1and1.ro</a>&gt;</span><br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div class="HOEnZb">
            <div class="h5">On 12/07/2011 06:24 PM, Bruno Bresciani
              wrote:<br>
              <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
                0.8ex; border-left: 1px solid rgb(204, 204, 204);
                padding-left: 1ex;">
                Hi All,<br>
                <br>
                Kamailio generate a core at line below<br>
                <br>
                if(_msg-&gt;contact!= NULL ||
                _msg-&gt;contact-&gt;body.s!= NULL){<br>
                <br>
                _msg is a sip_msg struct that my module receive from
                kamailio. I want verify if on that request messagem have
                a contact header, but a core is being generated when
                contact header isn't present on message.<br>
                <br>
                Someone knows why this is happening?<br>
                <br>
                Cheers<br>
              </blockquote>
            </div>
          </div>
          Hello,<br>
          <br>
          Looks like a bug. Can you also point to &nbsp;the source file where
          this line is present. It certainly looks like a typo. I've
          tried grepping over the latest 3.2 but to no avail.<br>
          <br>
          Cheers,<br>
          Marius<span class="HOEnZb"><font color="#888888"><br>
              <br>
              -- <br>
              Zbihlei Marius<br>
              <br>
              Head of<br>
              Linux Development Services Romania<br>
              <br>
              1&amp;1 Internet Development srl &nbsp; &nbsp;Tel KA: 754-9512<br>
              Str Mircea Eliade 18 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Tel RO: <a
                moz-do-not-send="true" href="tel:%2B40-31-223-9512"
                value="+40312239512" target="_blank">+40-31-223-9512</a><br>
              Sect 1, Bucuresti &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mailto: <a
                moz-do-not-send="true"
                href="mailto:marius.zbihlei@1and1.ro" target="_blank">marius.zbihlei@1and1.ro</a><br>
              71295, Romania</font></span>
          <div class="HOEnZb">
            <div class="h5"><br>
              <br>
              <br>
              _______________________________________________<br>
              SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
              mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:sr-users@lists.sip-router.org"
                target="_blank">sr-users@lists.sip-router.org</a><br>
              <a moz-do-not-send="true"
                href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Zbihlei Marius

Head of
Linux Development Services Romania

1&amp;1 Internet Development srl    Tel KA: 754-9512
Str Mircea Eliade 18            Tel RO: +40-31-223-9512
Sect 1, Bucuresti               mailto: <a class="moz-txt-link-abbreviated" href="mailto:marius.zbihlei@1and1.ro">marius.zbihlei@1and1.ro</a>
71295, Romania                  </pre>
  </body>
</html>