aboutsummaryrefslogtreecommitdiffstats
path: root/cdr/cdr_mysql.c
diff options
context:
space:
mode:
Diffstat (limited to 'cdr/cdr_mysql.c')
-rwxr-xr-xcdr/cdr_mysql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cdr/cdr_mysql.c b/cdr/cdr_mysql.c
index fa435b0da..438527b14 100755
--- a/cdr/cdr_mysql.c
+++ b/cdr/cdr_mysql.c
@@ -291,7 +291,7 @@ int load_module(void)
mysql_init(&mysql);
- if (!mysql_real_connect(&mysql, hostname, dbuser, password, dbname, 0, NULL, 0)) {
+ if (!mysql_real_connect(&mysql, hostname, dbuser, password, dbname, dbport, dbsock, 0)) {
ast_log(LOG_ERROR, "Failed to connect to mysql database %s on %s.\n", dbname, hostname);
connected = 0;
} else {