]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/tray-monitor/authenticate.c
Add additional mysql connection debug code
[bacula/bacula] / bacula / src / tray-monitor / authenticate.c
index 427c45682da1fe2739e041e1978c549472ecbfd0..2735111a3181feb3376d51bbaf0c7ec4cf0ebadf 100644 (file)
@@ -194,7 +194,7 @@ int authenticate_file_daemon(JCR *jcr, MONITOR *monitor, CLIENT* client)
    }
    Dmsg1(110, "<stored: %s", fd->msg);
    stop_bsock_timer(tid);
-   if (strncmp(fd->msg, FDOKhello, sizeof(FDOKhello)) != 0) {
+   if (strncmp(fd->msg, FDOKhello, sizeof(FDOKhello)-1) != 0) {
       Jmsg(jcr, M_FATAL, 0, _("File daemon rejected Hello command\n"));
       return 0;
    }