Amanda-Users

Re: Release of amanda-2.5.0b2

2006-02-09 02:34:35
Subject: Re: Release of amanda-2.5.0b2
From: Josef Wolf <jw AT raven.inka DOT de>
To: amanda-users AT amanda DOT org
Date: Thu, 9 Feb 2006 08:22:50 +0100
On Wed, Feb 08, 2006 at 09:28:34PM -0800, John Franks wrote:

> Actually, I removed the check for a NULL pointer since str
> should never be NULL.

This is what confused me: removing the check without removing the cause.
Smells like removing the safety belt while you are still at 300mph ;-)

> str is assigned by a call to
> syncpipe_getstr() which will, in practice,  never return a
> NULL pointer.  The only way to get there in the old code is
> to have the other side of the syncpipe write an invalid string length ( <= 
> 0).
>
> However, it looks as though I left out the modification to
> syncpipe_getstr() which calls error() when an invalid length
> is passed and guarantees a NULL is *never* returned...

Hmmm, I still don't get it.  If I understand your explanation and the
patch correctly, the "(null)" would be generated only when a fatal
protocol error occurs.

But actually, this is not the case.  The "(null)" strings appear in
every CHUNKSUCCESS line although everything seems to be OK.  Should this
really be caused by a protocol error, then the cause for the protocol
should be found.

Could it be that there is yet another place that could generate NULL?
And if so: wouldn't it be better to leave the check in place, just to
be sure?


<Prev in Thread] Current Thread [Next in Thread>