Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==5959== Conditional jump or move depends on uninitialised value(s)
- ==5959== at 0x442AEA3: ??? (in /lib/libc-2.12.2.so)
- ==5959== by 0x80960B1: NewUser(char*, char*, int) (udp.cc:62)
- ==5959== by 0x805026A: ReadConfig(char*) (main.cc:1151)
- ==5959== by 0x80520E8: main (main.cc:1694)
- ==5959== Uninitialised value was created by a stack allocation
- ==5959== at 0x804DD0B: ReadConfig(char*) (main.cc:595)
- udp.cc
- void NewUser(char *user, char *pass, int level)
- {
- USERLIST *new_user;
- USERLIST *global = UDPUserList;
- new_user = new(USERLIST);
- new_user->user = strdup(user);
- new_user->pass = strdup(pass);
- new_user->level = level;
- new_user->next = NULL;
- if (!UDPUserList)
- {
- UDPUserList = new_user;
- return;
- }
- main.cc
- } else if (!strcasecmp(label, "UDPUSER"))
- {
- #ifdef UDP
- if (true) {
- ulvl = 0;
- udppass = strstr(value,",");
- if (udppass)
- {
- udppass[0] = '\0';
- udppass++;
- }
- udplvl = strstr(udppass,"=");
- if (udplvl)
- {
- udplvl[0] = '\0';
- udplvl++;
- ulvl = atoi(udplvl);
- }
- if (strlen(value) && udppass && ulvl)
- {
- NewUser(value,udppass,ulvl);
- }
- }
- // reset variables...
- strcpy(value, "");
- udppass = NULL;
- ulvl = 0;
- #endif
- } else {
- printf("unknown label '%s' in configfile.\n", label);
- fclose(in_file);
- return (FALSE);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement