Changeset 32259 for titan


Ignore:
Timestamp:
01/08/15 21:42:44 (9 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/adjust.h

    r32254 r32259  
    427427                        {
    428428                                debug(99, "community_pass: write");
    429                                 char* tmpstr = NULL;
    430                                 tmpstr = ostrcat(community_pass->ret, NULL, 0, 0);
    431                                 if(strlen(tmpstr) != 32)
     429                                if(strlen(community_pass->ret) != 32)
    432430                                {
    433431                                        debug(99, "community_pass: convert to md5");
    434                                         char* tmpstr1 = NULL;
    435                                         tmpstr1 = ostrcat(MDString(tmpstr), NULL, 1, 0);
    436                                         addconfigscreen("community_pass", tmpstr1);
    437                                         free(tmpstr1), tmpstr1 = NULL;
     432                                        char* tmpstr = NULL;
     433                                        tmpstr = ostrcat(MDString(community_pass->ret), NULL, 1, 0);
     434                                        community_pass->ret = ostrcat(tmpstr, NULL, 1, 0);
    438435                                }
    439                                 else
    440                                         addconfigscreen("community_pass", tmpstr);
    441                                 free(tmpstr), tmpstr = NULL;
     436                                addconfigscreen("community_pass", community_pass);
    442437                        }
    443438                        else
Note: See TracChangeset for help on using the changeset viewer.