<div dir="ltr"><div dir="ltr">Hi Rob / Liviu,<div><br></div><div>I browsed quickly through the code and I think the following clause may be a culprit:</div><div><br></div><div> if (calc_ha1) {<br> /* Only plaintext passwords are stored in database,<br> * we have to calculate HA1 */<br> cprms.creds.open = &(const struct digest_auth_credential){<br> .realm = *_domain, .user = _username->whole, .passwd = result};<br> cprms.use_hashed = 0;<br> }<br></div><div><br></div><div>Compiler might deallocate / overwrite struct digest_auth_credential after exiting that block causing subsequent call to auth_api.calc_HA1() to access bogus pointer.</div><div><br></div><div>Rob, can you try applying the following commit and recompile/reinstall the module in question and see if it helps?</div><div><br></div><div><a href="https://github.com/sippy/opensips/commit/fea6a1d60d70f64971dff3ec2dc83f7ddc00389d">https://github.com/sippy/opensips/commit/fea6a1d60d70f64971dff3ec2dc83f7ddc00389d</a><br></div><div><br></div><div>Thanks!</div><div><br></div><div>-Max</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 27, 2021 at 12:48 AM Liviu Chircu <<a href="mailto:liviu@opensips.org" target="_blank">liviu@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 27.09.2021 03:56, Rob Dyck wrote:<br>
> I am seeing the same. opensips-3.2.2 compiled from git source on Fedora.<br>
<br>
Thank you for the help, gents! Let's see if I can reproduce it... <br>
should be fairly straightforward.<br>
<br>
Best,<br>
<br>
-- <br>
Liviu Chircu<br>
<a href="http://www.twitter.com/liviuchircu" rel="noreferrer" target="_blank">www.twitter.com/liviuchircu</a> | <a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">www.opensips-solutions.com</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br clear="all"><div><br></div><div dir="ltr"><div dir="ltr"><br></div></div>
</div>