Fix crash #174 by duplicating curl handle
Wrap libcurl to bypass lack of covariance support
This commit is contained in:
committed by
Brendan LE GLAUNEC
parent
6392dcd9a0
commit
bcc8099f91
@@ -31,6 +31,10 @@ func (m *CurlerMock) Getinfo(info curl.CurlInfo) (interface{}, error) {
|
||||
return args.Int(0), args.Error(1)
|
||||
}
|
||||
|
||||
func (m *CurlerMock) Duphandle() Curler {
|
||||
return m
|
||||
}
|
||||
|
||||
func TestAttackCredentials(t *testing.T) {
|
||||
validStream1 := Stream{
|
||||
Device: "fakeDevice",
|
||||
|
||||
Reference in New Issue
Block a user