ref: a061a2c2564fdbc092f384f2a29d0dcc1ed8a6fd
parent: eb0b032482a8c6ebb356d61c40c453d38318f93a
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Thu Jul 29 06:23:16 EDT 2021
connect callback: make sure it's "_result"
--- a/rtmp.c
+++ b/rtmp.c
@@ -563,7 +563,10 @@
static void
connected(RTMP *r, int ok, Amf0 *a[NumCb], void *)
{
- sendp(r->c, ok ? nil : smprint("%A", a[CbResponse]));
+ if(strcmp(a[CbCommand]->str, "_result") != 0)
+ sendp(r->c, smprint("expected '_result', got %#q", a[CbCommand]->str));
+ else
+ sendp(r->c, ok ? nil : smprint("%A", a[CbResponse]));
}
static int