[vlc-devel] [PATCH] srt: fix bug in setting passphrase

Aaron Boxer boxerab at gmail.com
Wed Apr 3 23:21:40 CEST 2019


wrong patch !!!
This is the correct one, attached.




On Wed, Apr 3, 2019 at 5:20 PM Aaron Boxer <boxerab at gmail.com> wrote:

> This is probably safer : patch is attached.
>
> On Wed, Apr 3, 2019 at 3:08 PM Aaron Boxer <boxerab at gmail.com> wrote:
>
>> Thanks, Remi.
>> I generated a new patch:
>>
>>
>> ---
>>  modules/access/srt.c        | 2 +-
>>  modules/access_output/srt.c | 2 +-
>>  2 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/modules/access/srt.c b/modules/access/srt.c
>> index 2cf800a914..ad98e2db8e 100644
>> --- a/modules/access/srt.c
>> +++ b/modules/access/srt.c
>> @@ -174,7 +174,7 @@ static bool srt_schedule_reconnect(stream_t *p_stream)
>>                  SRTO_PBKEYLEN, &i_key_length, sizeof(i_key_length) );
>>
>>          srt_set_socket_option( strm_obj, SRT_PARAM_PASSPHRASE,
>> p_sys->sock,
>> -                SRTO_PASSPHRASE, &psz_passphrase, sizeof(psz_passphrase)
>> );
>> +                SRTO_PASSPHRASE, &psz_passphrase, strlen(psz_passphrase)
>> );
>>      }
>>
>>      /* set maximum payload size */
>> diff --git a/modules/access_output/srt.c b/modules/access_output/srt.c
>> index d772a48843..31752ee6e7 100644
>> --- a/modules/access_output/srt.c
>> +++ b/modules/access_output/srt.c
>> @@ -165,7 +165,7 @@ static bool srt_schedule_reconnect(sout_access_out_t
>> *p_access)
>>                  SRTO_PBKEYLEN, &i_key_length, sizeof(i_key_length) );
>>
>>          srt_set_socket_option( access_obj, SRT_PARAM_PASSPHRASE,
>> p_sys->sock,
>> -                SRTO_PASSPHRASE, &psz_passphrase, sizeof(psz_passphrase)
>> );
>> +                SRTO_PASSPHRASE, &psz_passphrase, strlen(psz_passphrase)
>> );
>>      }
>>
>>      /* set maximumu payload size */
>> --
>> 2.17.1
>>
>>
>> On Wed, Apr 3, 2019 at 2:45 PM Rémi Denis-Courmont <remi at remlab.net>
>> wrote:
>>
>>> Patch seems corrupt ?
>>>
>>> --
>>> レミ・デニ-クールモン
>>> http://www.remlab.net/
>>> _______________________________________________
>>> vlc-devel mailing list
>>> To unsubscribe or modify your subscription options:
>>> https://mailman.videolan.org/listinfo/vlc-devel
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20190403/f1b52592/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-srt-fix-bug-in-setting-passphrase.patch
Type: text/x-patch
Size: 1528 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20190403/f1b52592/attachment.bin>


More information about the vlc-devel mailing list