Code clean up to handle memory exception

Modified the code to Pass string data pointer instead
of the string object reference

Signed-off-by: gokulsanker <gokul.sanker.v.g@intel.com>
Change-Id: I28759c5d9d7a2632222c5395b08366a81a0ec4fd
diff --git a/src/oemcommands.cpp b/src/oemcommands.cpp
index 5d42e59..0400ed2 100644
--- a/src/oemcommands.cpp
+++ b/src/oemcommands.cpp
@@ -1263,7 +1263,7 @@
             status = ipmiSetSpecialUserPassword("root", passwd);
         }
         // Clear sensitive data
-        OPENSSL_cleanse(&passwd, passwd.length());
+        OPENSSL_cleanse(passwd.data(), passwd.length());
 
         return ipmi::response(status);
     }