X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fdird%2Fauthenticate.c;h=0dce7ef5db62f139bf0c325ddf15d336c8cfb704;hb=44dcf4731d5a6db8f12ca5a969c02b98a33a6ed4;hp=e0eb7aca01de76a3d6bf3ae27ff733c4d70d1ccd;hpb=f4be2a661836ac97a7aab8af0bb6e5b1fb49b746;p=bacula%2Fbacula diff --git a/bacula/src/dird/authenticate.c b/bacula/src/dird/authenticate.c index e0eb7aca01..0dce7ef5db 100644 --- a/bacula/src/dird/authenticate.c +++ b/bacula/src/dird/authenticate.c @@ -67,6 +67,11 @@ bool authenticate_storage_daemon(JCR *jcr, STORE *store) int compatible = true; bool auth_success = false; + if (!sd) { + Dmsg0(dbglvl, "Invalid bsock\n"); + return false; + } + /* * Send my name to the Storage daemon then do authentication */