(dataconn): make sure from points to actual data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7649 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1210,7 +1210,7 @@ dataconn(const char *name, off_t size, const char *mode)
|
|||||||
*sizebuf = '\0';
|
*sizebuf = '\0';
|
||||||
if (pdata >= 0) {
|
if (pdata >= 0) {
|
||||||
struct sockaddr_storage from_ss;
|
struct sockaddr_storage from_ss;
|
||||||
struct sockaddr *from = (struct sockaddr *)&from;
|
struct sockaddr *from = (struct sockaddr *)&from_ss;
|
||||||
int s;
|
int s;
|
||||||
int fromlen = sizeof(from_ss);
|
int fromlen = sizeof(from_ss);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user