... | ... |
@@ -262,6 +262,11 @@ inline static int un_escape(str *user, str *new_user ) |
262 | 262 |
int i, j, value; |
263 | 263 |
int hi, lo; |
264 | 264 |
|
265 |
+ if( new_user==0 || new_user->s==0) { |
|
266 |
+ LOG(L_CRIT, "BUG: un_escape: called with invalid param\n"); |
|
267 |
+ return -1; |
|
268 |
+ } |
|
269 |
+ |
|
265 | 270 |
new_user->len = 0; |
266 | 271 |
j = 0; |
267 | 272 |
|