s3:libads: Remove extra new line in keytab list output
[samba.git] / source3 / libads / kerberos_keytab.c
index da363741d109e37440664794fe7943db831a4309..b7e1846bd9ff662c87bdec19094ecfe92d087465 100644 (file)
@@ -853,7 +853,7 @@ int ads_keytab_list(const char *keytab_name)
 
                ret = smb_krb5_enctype_to_string(context, enctype, &etype_s);
                if (ret &&
-                   (asprintf(&etype_s, "UNKNOWN: %d\n", enctype) == -1)) {
+                   (asprintf(&etype_s, "UNKNOWN: %d", enctype) == -1)) {
                        TALLOC_FREE(princ_s);
                        goto out;
                }