Re: mistype
Andreas Fink <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <p0510150eb8d894a2856e@[193.53.0.55]> |
>Hi Andreas, > >First of all thank you for your work. >I've loaded 1.1.6. and when I looked at new DLR module I found strange >string in gw/dlr.c. >mysql_errno() return 0 if previous operation was successful, isn't it? > > mysql_close(connection); > if (!mysql_errno(connection)) ??? > error(0,"MYSQL: %s", mysql_error(connection)); > Well even closing a connection could create an error. But by re-reading the specs of mysql I must say that this is referencing a deallocated pointer. So the two lines after mysql_close should be removed. The lines where only called once the box is shut down. I'll update CVS accordingly. -- Andreas Fink Fink-Consulting ------------------------------------------------------------------ Tel: +41-61-6932730 Fax: +41-61-6932729 Mobile: +41-79-2457333 Address: A. Fink, Schwarzwaldallee 16, 4058 Basel, Switzerland E-Mail: [email protected] Homepage: http://www.finkconsulting.com ------------------------------------------------------------------ Something urgent? Try http://www.smsrelay.com/ Nickname afink