]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:libads: add missing TALLOC_FREE(frame) in error path
authorStefan Metzmacher <metze@samba.org>
Sat, 5 Mar 2016 01:53:45 +0000 (02:53 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 10 Mar 2016 05:52:29 +0000 (06:52 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/libads/sasl.c

index 720ee7852feb8375d631d47d917d3a1f02d43460..e1dd506d4a58b8d4515cd462f72fbbc3ce85e37a 100644 (file)
@@ -46,6 +46,7 @@ static ADS_STATUS ads_sasl_ntlmssp_wrap(ADS_STRUCT *ads, uint8_t *buf, uint32_t
        }
 
        if ((ads->ldap.out.size - 4) < wrapped.length) {
+               TALLOC_FREE(frame);
                return ADS_ERROR_NT(NT_STATUS_INTERNAL_ERROR);
        }