[sr-dev] git:master: db_mysql: fix segfault when recursive queries are made

Richard Fuchs rfuchs at sipwise.com
Wed Apr 10 18:08:58 CEST 2013


On 04/10/13 12:02, Juha Heinanen wrote:
> richard,
> 
> on debian wheezy, i got this after your commit:
> 
> CC (cc) [M db_mysql.so]		km_db_mysql.o
> km_db_mysql.c: In function 'db_mysql_bind_api':
> km_db_mysql.c:110:24: warning: assignment from incompatible pointer type [enabled by default]

This should be fixed by adding the const qualifier to the
db_free_result_f prototype (first arg), however this can only be done
after all other db drivers have been updated so they don't store the
result set objects in the connection objects any more. If this can't be
done short term, then we'll need to fix the warning some other way.

cheers

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20130410/7f404286/attachment.pgp>


More information about the sr-dev mailing list