]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/net/dip/DipVersionP.nc
Merge TinyOS 2.1.1 into master.
[tinyos-2.x.git] / tos / lib / net / dip / DipVersionP.nc
index 87922a1507735beb8a94481529cfbf0918dfca7a..e315b6c249c8da160f4070212f117ebec665e7fa 100644 (file)
@@ -68,6 +68,9 @@ implementation {
     dip_index_t i;
 
     i = call DipHelp.keyToIndex(key);
+    if(i == DIP_UNKNOWN_INDEX) {
+      return DIP_UNKNOWN_VERSION;
+    }
     return versions[i];
   }