[asterisk-bugs] [Asterisk 0012580]: Fails to load if sock not specified in config
noreply at bugs.digium.com
noreply at bugs.digium.com
Sun May 4 21:55:51 CDT 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=12580
======================================================================
Reported By: pnlarsson
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 12580
Category: Addons/cdr_addon_mysql
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!): 584
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 05-04-2008 03:50 CDT
Last Modified: 05-04-2008 21:55 CDT
======================================================================
Summary: Fails to load if sock not specified in config
Description:
If the socket is not specified in the config file, cdr_addons_mysql will
fail to load. This is where mysql is running on the same machine.
The patch attached solves this issue, without the patch the dbsock->str
contains (null) and then fails the ast_strlen_zero test.
======================================================================
----------------------------------------------------------------------
Corydon76 - 05-04-08 21:55
----------------------------------------------------------------------
No, this is incorrect. Check the MySQL API, which states quite clearly
that dbsock should be NULL if the default value should be used.
Issue History
Date Modified Username Field Change
======================================================================
05-04-08 21:55 Corydon76 Note Added: 0086386
======================================================================
More information about the asterisk-bugs
mailing list