From 4ac288400355743c2f2a7a302daee57751d1238f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 3 Sep 2019 13:31:44 +0200 Subject: urldata: avoid 'generic', use dedicated pointers For the 'proto' union within the connectdata struct. Closes #4290 --- lib/urldata.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/urldata.h') diff --git a/lib/urldata.h b/lib/urldata.h index 7f26a9561..acc1fd1b9 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -780,6 +780,8 @@ struct http_connect_state { bit close_connection:1; }; +struct ldapconninfo; + /* * The connectdata struct contains all fields and variables that should be * unique for an entire connection. @@ -1018,7 +1020,8 @@ struct connectdata { struct smtp_conn smtpc; struct rtsp_conn rtspc; struct smb_conn smbc; - void *generic; /* RTMP and LDAP use this */ + void *rtmp; + struct ldapconninfo *ldapc; } proto; int cselect_bits; /* bitmask of socket events */ -- cgit v1.2.3