summaryrefslogtreecommitdiff
path: root/source3/libaddns/dnssock.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libaddns/dnssock.c')
-rw-r--r--source3/libaddns/dnssock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libaddns/dnssock.c b/source3/libaddns/dnssock.c
index 3d0991a1aa..d3223b9bd8 100644
--- a/source3/libaddns/dnssock.c
+++ b/source3/libaddns/dnssock.c
@@ -732,7 +732,7 @@ void DNSFreeSendBufferContext( HANDLE hSendBuffer )
pSendBufferContext = ( DNS_SENDBUFFER_CONTEXT * ) hSendBuffer;
- if ( pSendBufferContext->pSendBuffer ) {
+ if ( pSendBufferContext && pSendBufferContext->pSendBuffer ) {
DNSFreeMemory( pSendBufferContext->pSendBuffer );
}
if ( pSendBufferContext ) {