diff --git a/server/modules/monitor/auroramon/auroramon.c b/server/modules/monitor/auroramon/auroramon.c index a21965ec0..3bc705176 100644 --- a/server/modules/monitor/auroramon/auroramon.c +++ b/server/modules/monitor/auroramon/auroramon.c @@ -71,7 +71,7 @@ void update_server_status(MXS_MONITOR *monitor, MXS_MONITORED_SERVER *database) int status = SERVER_SLAVE; /** The master will return a row with two identical non-NULL fields */ - if (row[0] && row[1] && strcmp(row[0], row[1]) == 0) + if (row && row[0] && row[1] && strcmp(row[0], row[1]) == 0) { status = SERVER_MASTER; }