fix segv on desklock unlock (valgrind caught it) :)
SVN revision: 23823
This commit is contained in:
parent
3f02b70103
commit
3c612bf4e8
|
@ -585,6 +585,7 @@ _desklock_auth(const char *passwd)
|
|||
E_Desklock_Auth da;
|
||||
char *current_user;
|
||||
|
||||
current_user = _desklock_auth_get_current_user();
|
||||
strncpy(da.user, current_user, PATH_MAX);
|
||||
strncpy(da.passwd, passwd, PATH_MAX);
|
||||
da.pam.handle = NULL;
|
||||
|
|
|
@ -329,7 +329,9 @@ _e_prefix_share_hunt(void)
|
|||
return 1;
|
||||
}
|
||||
/* fail. everything failed */
|
||||
#ifdef PREFIX_CACHE_FILE
|
||||
free(home);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue