1) strdup => DupString
[ircu2.10.12-pk.git] / ircd / ircd_crypt.c
index 4f58e1dda5ad5c51ac396fa73ee0d817b6bb2ddd..2f50fe04856cb78f2e7064b16d07a0b14c663506 100644 (file)
@@ -202,9 +202,13 @@ crypt_mechs_t* crypt_mech;
  /* try to use native crypt for an old-style (untagged) password */
  if (strlen(salt) > 2)
  {
+   char *s;
    temp_hashed_pass = (char*)ircd_crypt_native(key, salt);
    if (!ircd_strcmp(temp_hashed_pass, salt))
-    return strdup(temp_hashed_pass);
+   {
+     DupString(s, temp_hashed_pass);
+     return s;
+   }
  }
 
  return NULL;