[sr-dev] [tracker] Comment added: Crash when reloading addresses from mysql database (permissions module)

sip-router bugtracker at sip-router.org
Mon Apr 28 09:01:35 CEST 2014


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#420 - Crash when reloading addresses from mysql database (permissions module)
User who did this - Torrey Searle (tsearle)

----------
The crash is at the following piece of code

                *_r = 0;
#if (MYSQL_VERSION_ID >= 40100)
                while( mysql_more_results(CON_CONNECTION(_h)) && mysql_next_result(CON_CONNECTION(_h)) > 0 ) {
                        MYSQL_RES *res = mysql_store_result( CON_CONNECTION(_h) );
                        mysql_free_result(res);
                }
#endif
                RES_RESULT(*_r) = 0;








I'm guessing you shouldn't do both 

*_r = 0;

and 

RES_RESULT(*_r) = 0;


and the RES_RESULT line should be removed or put before the RES_RESULT(*_r) = 0;






----------

More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=420#comment1408

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the sr-dev mailing list