From: Kern Sibbald Date: Sun, 19 Sep 2010 06:52:32 +0000 (+0200) Subject: Add comm error output when cram-md5 fails with comm error X-Git-Tag: Release-7.0.0~1576 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=58405a5649ade6a86bed6d75f612903056e52972;p=bacula%2Fbacula Add comm error output when cram-md5 fails with comm error --- diff --git a/bacula/src/lib/cram-md5.c b/bacula/src/lib/cram-md5.c index a063ad1bac..35651af029 100644 --- a/bacula/src/lib/cram-md5.c +++ b/bacula/src/lib/cram-md5.c @@ -72,21 +72,21 @@ bool cram_md5_challenge(BSOCK *bs, const char *password, int tls_local_need, int if (compatible) { Dmsg2(dbglvl, "send: auth cram-md5 %s ssl=%d\n", chal, tls_local_need); if (!bs->fsend("auth cram-md5 %s ssl=%d\n", chal, tls_local_need)) { - Dmsg1(dbglvl, "Bnet send challenge error.\n", bs->bstrerror()); + Dmsg1(dbglvl, "Bnet send challenge comm error. ERR=%s\n", bs->bstrerror()); return false; } } else { /* Old non-compatible system */ Dmsg2(dbglvl, "send: auth cram-md5 %s ssl=%d\n", chal, tls_local_need); if (!bs->fsend("auth cram-md5 %s ssl=%d\n", chal, tls_local_need)) { - Dmsg1(dbglvl, "Bnet send challenge error.\n", bs->bstrerror()); + Dmsg1(dbglvl, "Bnet send challenge comm error. ERR=%s\n", bs->bstrerror()); return false; } } /* Read hashed response to challenge */ if (bs->wait_data(180) <= 0 || bs->recv() <= 0) { - Dmsg1(dbglvl, "Bnet receive challenge response error.\n", bs->bstrerror()); + Dmsg1(dbglvl, "Bnet receive challenge response comm error. ERR=%s\n", bs->bstrerror()); bmicrosleep(5, 0); return false; }