Changeset f5979a3536dff652504b40af656f4484ca42a331

Show
Ignore:
Timestamp:
05/10/12 12:20:00 (2 years ago)
Author:
Theo Schlossnagle <jesus@lethargy.org>
git-committer:
Theo Schlossnagle <jesus@lethargy.org> 1336652400 -0700
git-parent:

[cf9faec6ccb1f67d0d56fe72b5918f3f50586aa7], [f0d9abbf9e265afbef89e36bb4f6dd44a5654b03]

git-author:
Theo Schlossnagle <jesus@lethargy.org> 1336652400 -0700
Message:

Merge pull request #73 from thommay/mysql-crash

mysql: don't crash if sslmode isn't configured

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules/mysql.c

    rde52002 rf0d9abb  
    298298 
    299299#if MYSQL_VERSION_ID >= 50000 
    300       if (!strcmp(sslmode, "require")) { 
     300      if (sslmode && !strcmp(sslmode, "require")) { 
    301301        /* mysql has a bad habit of silently failing to establish ssl and 
    302302         * falling back to unencrypted, so after making the connection, let's