[openib-general] [PATCH] Opensm - bug in parsing db file

Yael Kalka yael at mellanox.co.il
Wed Sep 14 01:04:14 PDT 2005


Hi Hal,

There was a bug in the parsing of the guid2lid file. 
Attached is a patch for that.

Thanks,
Yael

Signed-off-by:  Yael Kalka <yael at mellanox.co.il>

Index: osm_db_files.c
===================================================================
--- osm_db_files.c      (revision 3412)
+++ osm_db_files.c      (working copy)
@@ -387,9 +387,6 @@ osm_db_restore(
           p_prev_val = NULL;
         }
 
-        /* the last char of the value is newline - remove it */
-        p_accum_val[strlen(p_accum_val) - 1] = '\0';
-
         /* store our key and value */
         st_insert(p_domain_imp->p_hash,
                   (st_data_t)p_key, (st_data_t)p_accum_val);




More information about the general mailing list