Skip to content

sam3tcpSend sends a corrupted buffer #26

@fedorchikthebest

Description

@fedorchikthebest
if ((conn = sam3StreamConnect(ses, line)) == NULL) {
            fprintf(stderr, "ERROR: can't connect: %s\n", ses->error);
            return 1;
}
sleep(1);
rb[2] = 10;
char test[5] = {1, 2, 3, 4, 5};
printf("%d\n", sam3tcpSend(conn->fd, test, 5));

This code connects and even sends data. but it arrives broken on the server.
This is not a server problem because when sending the same data using a socs proxy. It comes correctly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions