X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Ftray-monitor%2Fauthenticate.c;h=2735111a3181feb3376d51bbaf0c7ec4cf0ebadf;hb=afd4ac31e0f65357c5264c04b804e86b2095a304;hp=427c45682da1fe2739e041e1978c549472ecbfd0;hpb=64f337ae013b3eeec5d3fdd409929c08ff496ea6;p=bacula%2Fbacula diff --git a/bacula/src/tray-monitor/authenticate.c b/bacula/src/tray-monitor/authenticate.c index 427c45682d..2735111a31 100644 --- a/bacula/src/tray-monitor/authenticate.c +++ b/bacula/src/tray-monitor/authenticate.c @@ -194,7 +194,7 @@ int authenticate_file_daemon(JCR *jcr, MONITOR *monitor, CLIENT* client) } Dmsg1(110, "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; }