[PATCH] Messaging improvements and fixes needed for auth logging

Jim Brown jim.brown at rsmas.miami.edu
Mon Mar 20 13:05:58 UTC 2017


This test condition is odd.
Add a comment explaining why && dsize != 0?

On 3/20/17 03:21, Andrew Bartlett via samba-technical wrote:
> @@ -509,7 +510,7 @@ int tdb_fetch_talloc(struct tdb_context *tdb, TDB_DATA key,
>   		return map_unix_error_from_tdb(err);
>   	}
>   
> -	if (state.buf == NULL) {
> +	if (state.buf.dptr == NULL && state.buf.dsize != 0) {
>   		return ENOMEM;
>   	}




More information about the samba-technical mailing list