diff --git a/lib/MySQL_Protocol.cpp b/lib/MySQL_Protocol.cpp index a760919ad..13293531d 100644 --- a/lib/MySQL_Protocol.cpp +++ b/lib/MySQL_Protocol.cpp @@ -1547,6 +1547,8 @@ unsigned long long MySQL_ResultSet::current_size() { unsigned long long intsize=0; intsize+=sizeof(MySQL_ResultSet); intsize+=RESULTSET_BUFLEN; // size of buffer + if (PSarrayOUT==NULL) // see bug #699 + return intsize; intsize+=sizeof(PtrSizeArray); intsize+=(PSarrayOUT->size*sizeof(PtrSize_t *)); unsigned int i;