Changeset 989 for vendor/current/libcli/auth
- Timestamp:
- Nov 25, 2016, 8:04:54 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/libcli/auth/msrpc_parse.c
r988 r989 263 263 ps = va_arg(ap, char **); 264 264 if (len1 == 0 && len2 == 0) { 265 *ps = (char *)discard_const(""); 265 *ps = talloc_strdup(mem_ctx, ""); 266 if (*ps == NULL) { 267 ret = false; 268 goto cleanup; 269 } 266 270 } else { 267 271 /* make sure its in the right format - be strict */ … … 290 294 } 291 295 } else { 292 (*ps) = (char *)discard_const(""); 296 *ps = talloc_strdup(mem_ctx, ""); 297 if (*ps == NULL) { 298 ret = false; 299 goto cleanup; 300 } 293 301 } 294 302 } … … 303 311 /* make sure its in the right format - be strict */ 304 312 if (len1 == 0 && len2 == 0) { 305 *ps = (char *)discard_const(""); 313 *ps = talloc_strdup(mem_ctx, ""); 314 if (*ps == NULL) { 315 ret = false; 316 goto cleanup; 317 } 306 318 } else { 307 319 if ((len1 != len2) || (ptr + len1 < ptr) || (ptr + len1 < len1) || (ptr + len1 > blob->length)) { … … 326 338 } 327 339 } else { 328 (*ps) = (char *)discard_const(""); 340 *ps = talloc_strdup(mem_ctx, ""); 341 if (*ps == NULL) { 342 ret = false; 343 goto cleanup; 344 } 329 345 } 330 346 }
Note:
See TracChangeset
for help on using the changeset viewer.