audit 5.1.2
This commit is contained in:
		| @@ -133,23 +133,17 @@ namespace Novell.CASA.MiCasa.Communication | |||||||
|                         bytesRecvd = mSocket.Receive(buf);                         |                         bytesRecvd = mSocket.Receive(buf);                         | ||||||
|                         ms.Write(buf, 0, bytesRecvd); |                         ms.Write(buf, 0, bytesRecvd); | ||||||
|  |  | ||||||
|                         totalBytes = totalBytes + bytesAvailable;                                                   |                         totalBytes = totalBytes + bytesAvailable;                                                 	// did we wrap | ||||||
|  | 			if (totalBytes < 0)  | ||||||
|  | 			{ | ||||||
|  | 				return null; | ||||||
|  | 			} | ||||||
|                     } |                     } | ||||||
|                     if (totalBytes == 0) |                     if (totalBytes == 0) | ||||||
|                         return null; |                         return null; | ||||||
|                  |                  | ||||||
|                     return ms.ToArray(); |                     return ms.ToArray(); | ||||||
|  |  | ||||||
|                     /* |  | ||||||
|                     byte[] finalbuf = ms.ToArray();                     |  | ||||||
|                     int returnBufferLen = msgIdBytes.Length + msgLenBytes.Length + totalBytes; |  | ||||||
|                     returnBuffer = new byte[returnBufferLen]; |  | ||||||
|                     Array.Copy(msgIdBytes, returnBuffer, 2); |  | ||||||
|                     Array.Copy(msgLenBytes, 0, returnBuffer, 2, 4); |  | ||||||
|                     Array.Copy(finalbuf, 0, returnBuffer, 6, finalbuf.Length); |  | ||||||
|                     return returnBuffer; |  | ||||||
|                      *  |  | ||||||
|                      */ |  | ||||||
|                 } |                 } | ||||||
|                 else |                 else | ||||||
|                 { |                 { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user