Bug 862744: Fix = vs == typo in FindFreeStream() r=tuexen
authorRandell Jesup <rjesup@jesup.org>
Fri, 19 Apr 2013 07:10:29 -0400
changeset 129320 48595e0d85d53fea285e206c61d4c4ec9f3fecf7
parent 129319 5517dbffd39da31c194223e41deb8bd46724f989
child 129321 f5ba9622f687c9d52b9adffe5fc7b1cc3d81ac82
push idunknown
push userunknown
push dateunknown
reviewerstuexen
bugs862744
milestone23.0a1
Bug 862744: Fix = vs == typo in FindFreeStream() r=tuexen
netwerk/sctp/datachannel/DataChannel.cpp
--- a/netwerk/sctp/datachannel/DataChannel.cpp
+++ b/netwerk/sctp/datachannel/DataChannel.cpp
@@ -838,17 +838,17 @@ DataChannelConnection::FindFreeStream()
   for (i = (mAllocateEven ? 0 : 1); i < limit; i += 2) {
     if (!mStreams[i]) {
       // Verify it's not still in the process of closing
       for (j = 0; j < mStreamsResetting.Length(); ++j) {
         if (mStreamsResetting[j] == i) {
           break;
         }
       }
-      if (j = mStreamsResetting.Length())
+      if (j == mStreamsResetting.Length())
         break;
     }
   }
   if (i >= limit) {
     return INVALID_STREAM;
   }
   return i;
 }