Ignore:
Timestamp:
Nov 25, 2016, 8:04:54 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/libcli/auth/msrpc_parse.c

    r988 r989  
    263263                        ps = va_arg(ap, char **);
    264264                        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                                }
    266270                        } else {
    267271                                /* make sure its in the right format - be strict */
     
    290294                                        }
    291295                                } else {
    292                                         (*ps) = (char *)discard_const("");
     296                                        *ps = talloc_strdup(mem_ctx, "");
     297                                        if (*ps == NULL) {
     298                                                ret = false;
     299                                                goto cleanup;
     300                                        }
    293301                                }
    294302                        }
     
    303311                        /* make sure its in the right format - be strict */
    304312                        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                                }
    306318                        } else {
    307319                                if ((len1 != len2) || (ptr + len1 < ptr) || (ptr + len1 < len1) || (ptr + len1 > blob->length)) {
     
    326338                                        }
    327339                                } else {
    328                                         (*ps) = (char *)discard_const("");
     340                                        *ps = talloc_strdup(mem_ctx, "");
     341                                        if (*ps == NULL) {
     342                                                ret = false;
     343                                                goto cleanup;
     344                                        }
    329345                                }
    330346                        }
Note: See TracChangeset for help on using the changeset viewer.