Navigation



Ignore:
Timestamp:
Jul 28, 2010, 6:46:18 PM (14 years ago)
Author:
Souheil Ben Ayed <souheil@tera.ics.keio.ac.jp>
Branch:
default
Phase:
public
Message:

Fix small issue on app_diameap

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_diameap/diameap_mysql.c

    r438 r444  
    8383
    8484                user->id = atoi(row[0]);
     85                CHECK_MALLOC(user->userid=malloc(strlen(row[1])));
    8586                memcpy(user->userid,row[1],strlen(row[1]));
    8687                user->useridLength = strlen(row[1]);
     88                CHECK_MALLOC(user->password=malloc(strlen(row[2])));
    8789                memcpy(user->password, row[2],strlen(row[2]));
    8890                user->passwordLength = strlen(row[2]);
Note: See TracChangeset for help on using the changeset viewer.